Is there an interface for getting where the drone is facing after take-off?
I want to get the orientation of the drone after take-off. This is so that when drone returns to take-off location, it can adjust itself to face the same direction as it was during take-off.
gimbal.set_target is for controlling the gimbal orientation (only pitch axis for Anafi). For the drone heading you should use the moveTo command message, set the heading parameter to the desired yaw orientation and the position to the current GPS position (as returned by the PositionChanged event message).
It turns out I was using the wrong unit for the heading in moveTo function. The attitude[‘yaw’] from AttitudeChanged is in radian. This must be converted to degrees first before passing to moveTo function.