Need mechanism in Copter to reset yaw to follow vehicle heading in guided mode #2427

Open
hamishwillee opened this Issue Jun 17, 2015 · 0 comments

Comments

Projects
None yet
3 participants
@hamishwillee
Contributor

hamishwillee commented Jun 17, 2015

By default when you enter guided mode, the yaw of the vehicle follows the vehicle heading. If you change the yaw using MAV_CMD_CONDITION_YAW you will have to control the yaw manually for the rest of the script, because there is no way good way to reset the yaw back to following vehicle heading (actually, you can toggle the mode away from GUIDED and back again, but then RC Controller settings for throttle etc may affect vehicle behaviour - so this is not acceptable).

A desirable implementation is to update MAV_CMD_CONDITION_YAW param4 to have a third option that sets the yaw as relative to the vehicle heading (in addition to the absolute values and relative to the last yaw setting). Setting this and a heading of zero would emulate the default behaviour. Setting this and a heading of anything else would allow a yaw to be specified relative to the vehicle's direction of travel.

A less desirable but still good implementation would be to simply reset to the default behaviour, perhaps using Param 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment