mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-03 06:28:32 -04:00
AP_Mission: Fix comments for DO_CHANGE_SPEED
This commit is contained in:
parent
f84cb66bc6
commit
0e569e5566
@ -946,7 +946,7 @@ MAV_MISSION_RESULT AP_Mission::mavlink_int_to_mission_cmd(const mavlink_mission_
|
||||
case MAV_CMD_DO_CHANGE_SPEED: // MAV ID: 178
|
||||
cmd.content.speed.speed_type = packet.param1; // 0 = airspeed, 1 = ground speed
|
||||
cmd.content.speed.target_ms = packet.param2; // target speed in m/s
|
||||
cmd.content.speed.throttle_pct = packet.param3; // throttle as a percentage from 0 ~ 100%
|
||||
cmd.content.speed.throttle_pct = packet.param3; // throttle as a percentage from 1 ~ 100%
|
||||
break;
|
||||
|
||||
case MAV_CMD_DO_SET_HOME:
|
||||
@ -1386,7 +1386,7 @@ bool AP_Mission::mission_cmd_to_mavlink_int(const AP_Mission::Mission_Command& c
|
||||
case MAV_CMD_DO_CHANGE_SPEED: // MAV ID: 178
|
||||
packet.param1 = cmd.content.speed.speed_type; // 0 = airspeed, 1 = ground speed
|
||||
packet.param2 = cmd.content.speed.target_ms; // speed in m/s
|
||||
packet.param3 = cmd.content.speed.throttle_pct; // throttle as a percentage from 0 ~ 100%
|
||||
packet.param3 = cmd.content.speed.throttle_pct; // throttle as a percentage from 1 ~ 100%
|
||||
break;
|
||||
|
||||
case MAV_CMD_DO_SET_HOME: // MAV ID: 179
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
struct PACKED Change_Speed_Command {
|
||||
uint8_t speed_type; // 0=airspeed, 1=ground speed
|
||||
float target_ms; // target speed in m/s, -1 means no change
|
||||
float throttle_pct; // throttle as a percentage (i.e. 0 ~ 100), -1 means no change
|
||||
float throttle_pct; // throttle as a percentage (i.e. 1 ~ 100), 0 means no change
|
||||
};
|
||||
|
||||
// set relay command structure
|
||||
|
Loading…
Reference in New Issue
Block a user