Description
In GUIDED mode of ArduPilot, I encountered an issue where the commanded speed does not reflect the desired change. After sending the message MAV_CMD_NAV_WAYPOINT to specify a waypoint and then subsequently sending the message MAV_CMD_DO_CHANGE_SPEED to adjust the machine’s speed, the debugger indicates that the desired speed change is being set. However, the machine itself does not adjust its speed accordingly.
Upon further investigation, it has been observed that when sending the MAV_CMD_DO_CHANGE_SPEED message, the variable new_airspeed_cm in the code becomes 920. This value is obtained when using the following message parameters:
master.mav.command_long_encode( target_system, target_component, mavutil.mavlink.MAV_CMD_DO_CHANGE_SPEED, 0, 0, # Speed type 9.2, # Desired speed in meters per second 0, 0, 0, 0, 0 )
Please let me know if there is any further information or clarification required.