https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_WAYPOINT documents that I should use waypoint parameter4 as NaN if I want the vehicle to use system yaw.
However, if I create a MAVLink_mission_item_message with param4=math.nan and then write this to file by creating a MAVWPLoader object and calling save(), these NaNs are written to file (sort of as expected).
When I then try to load this waypoints file into mission planner, it fails claiming the line is invalid. Manually changing the NaNs to zero makes the file load correctly in mission planner. However I am not sure if it is then correctly using system yaw.
Test file the save spat out:
test.waypoints.txt
https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_WAYPOINT documents that I should use waypoint parameter4 as NaN if I want the vehicle to use system yaw.
However, if I create a
MAVLink_mission_item_messagewithparam4=math.nanand then write this to file by creating aMAVWPLoaderobject and callingsave(), these NaNs are written to file (sort of as expected).When I then try to load this waypoints file into mission planner, it fails claiming the line is invalid. Manually changing the NaNs to zero makes the file load correctly in mission planner. However I am not sure if it is then correctly using system yaw.
Test file the save spat out:
test.waypoints.txt