mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 03:41:35 +08:00
commander preflight calibration: accept param6 == 2 for airspeed calibration as well
This is according to the updated mavlink spec to deconflict the definition with APM.
This commit is contained in:
@@ -4108,7 +4108,8 @@ void *commander_low_prio_loop(void *arg)
|
|||||||
// board offset calibration
|
// board offset calibration
|
||||||
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub, command_ack);
|
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub, command_ack);
|
||||||
calib_ret = do_level_calibration(&mavlink_log_pub);
|
calib_ret = do_level_calibration(&mavlink_log_pub);
|
||||||
} else if ((int)(cmd.param6) == 1) {
|
} else if ((int)(cmd.param6) == 1 || (int)(cmd.param6) == 2) {
|
||||||
|
// TODO: param6 == 1 is deprecated, but we still accept it for a while (feb 2017)
|
||||||
/* airspeed calibration */
|
/* airspeed calibration */
|
||||||
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub, command_ack);
|
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub, command_ack);
|
||||||
calib_ret = do_airspeed_calibration(&mavlink_log_pub);
|
calib_ret = do_airspeed_calibration(&mavlink_log_pub);
|
||||||
|
|||||||
Reference in New Issue
Block a user