|
|
|
@ -849,20 +849,6 @@ MAV_RESULT GCS_MAVLINK_Plane::handle_command_preflight_calibration(const mavlink
@@ -849,20 +849,6 @@ MAV_RESULT GCS_MAVLINK_Plane::handle_command_preflight_calibration(const mavlink
|
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
MAV_RESULT GCS_MAVLINK_Plane::_handle_command_preflight_calibration_baro() |
|
|
|
|
{ |
|
|
|
|
/*
|
|
|
|
|
baro and airspeed calibration |
|
|
|
|
*/ |
|
|
|
|
MAV_RESULT ret = GCS_MAVLINK::_handle_command_preflight_calibration_baro(); |
|
|
|
|
if (ret == MAV_RESULT_ACCEPTED) { |
|
|
|
|
if (plane.airspeed.enabled()) { |
|
|
|
|
plane.zero_airspeed(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
MAV_RESULT GCS_MAVLINK_Plane::_handle_command_preflight_calibration(const mavlink_command_long_t &packet) |
|
|
|
|
{ |
|
|
|
|
if (is_equal(packet.param4,1.0f)) { |
|
|
|
|