ardupilot
ardupilot copied to clipboard
AntennaTracker NAV_CONTROLLER_OUTPUT.target_bearing = realy target bearing in guided mode
In guided mode we don't know the target bearing. Also, the only way to confirm acceptance of the SET_ATTITUDE_TARGET command is STATUSTEXT, which is not normal.
Can you add instructions how I can test this in SITL?
Sorry, SET_ATTITUDE_TARGET interface does not have a good feedback mechanism. It is normal for controls not to have reception receipts.
I think I see what you're getting at here. The bearing variable is doing double-duty. It's used both as desired bearing of the tracker in the manual control modes and as bearing to the target vehicle, and those are only really the same thing in auto, and not in other cases.
I have an alternative approach to this that I'm going to open.
Due to the fact that it was not possible to make a confirmation of acceptance of the SET_ATTITUDE_TARGET command, since the accuracy of the NAV_CONTROLLER_OUTPUT.targaet_bearing field is not sufficient - it needs to be in cDeg, then I made support for ATTITUDE_TARGET packages (#30548).