I have searched and con not find an answer other than having something else control the gimbal.
How do you adjust the where the gimbal points in earth reference mode? Is it possible to use an RC channel to move it the same as body ref accept it adjusts against earth ref instead? That’s how it sounds like its supposed to work when I read the docs but so far I cant make it work like that.
I dont know much about this thing but I have some rc based gimbal control on a servo gimbal.
It basically has yaw passthrough and normal roll stabilization. The pitch is rc targeting and it stabilizes the pitch to the angle commanded by the rc.
Are you using it with a mount lock switch? Mine can follow and target in body/airframe reference mode but in earth reference mode it just points north. I am curious about that earth ref mode specifically what controls where it point when in that mode.
In this doc it references “set RC9_OPTION = 163 (“Mount Lock”) to switch between “lock”, or yaw lock in earth-frame when switched to high, and “follow” mode or body frame yaw with RC channel 9”
My gimbal in earth frame just points north even when moving the aircraft. This feature appears to be working but I also am unable to control what way it points.
In follow mode it works as expected and responds to both ground station and rc input. Maybe I just need to reflash and test again incase something isnt working right.
My gimbal is working in arudpilot. Thanks though @Joshua_Kordani
The question is around how the earth ref gimbal mode works, irrespective of what gimbal you use. I did not find an explanation in the documentation that I understood.
You set lock mode and issue an attitude angle adjustment.
I’ve been assuming that you’re trying to figure out how to get mission planner or mavlink to do that for you, and to answer that, I’d like to know what version of the mavlink gimbal protocol is being used, hence my question.
If that’s not where you’re stuck, feel free to clarify
Its a xf robot gimbal (same as caddx gm), They use a custom protocol in ardupilot I think.
So the expected is in lock mode moving the sliders in mission planner should set a angle difference from 0/North for yaw? Ardupilot will update the gimbals commanded angle to adjust for the what ever heading the aircraft is on?
Are you supposed to be able to do that with the RC gimbal controls too?
On mine when I put it in gimbal lock, mission planner sets and holds an angle when using the payload sliders. This commanded angle does not change with aircraft attitude so it is not earth reference. If I try to use the RC Gimbal controls with the gimbal in lock mode it just freaks out basically.
However I am currently running custom firmware with a upcoming fix for the xf/caddx gimbals. Before I was on this firmware when I put the gimbal in lock mode it would just point north. Updating it with the payload sliders in mission planner or using RC control neither one changed where the gimbal pointed. Ardupilot was controlling it and correcting for airframe heading as the gimbal has no compass so the only way for it to keep pointed north is for ardupilot to have commanded the correction angle from the airframe.
I don’t have a need to use this mode but was wondering how it is expected to work and how others that do need it use it? Basically how is it supposed to work and what is it for? I understand what earth ref vs body ref means but not how you use the gimbal in this mode, as in what decides what direction to point it with reference to the earth.