ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

AntennaTracker NAV_CONTROLLER_OUTPUT.target_bearing = realy target bearing in guided mode

Open python36 opened this issue 6 months ago • 2 comments

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.

python36 avatar May 16 '25 16:05 python36

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.

Ryanf55 avatar May 30 '25 18:05 Ryanf55

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.

robertlong13 avatar May 31 '25 03:05 robertlong13

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).

python36 avatar Jul 05 '25 08:07 python36