diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 8f148a5177aebb1a7ab1c3d16ab03742e5b88b7f..95622e68e6b5916f11e18c5a47f8eac8340c2b26 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1472,6 +1472,9 @@ void UAS::startCalibration(UASInterface::StartCalibrationType calType) case StartCalibrationAccel: accelCal = 1; break; + case StartCalibrationLevel: + accelCal = 2; + break; } mavlink_message_t msg; diff --git a/src/uas/UASInterface.h b/src/uas/UASInterface.h index 4ad625df33bf25199561abbf27eb6e42bbc5408f..ecdf0683a73ca02db3f74ab3fefc8c70b7014fd7 100644 --- a/src/uas/UASInterface.h +++ b/src/uas/UASInterface.h @@ -243,7 +243,8 @@ public: StartCalibrationGyro, StartCalibrationMag, StartCalibrationAirspeed, - StartCalibrationAccel + StartCalibrationAccel, + StartCalibrationLevel }; /// Starts the specified calibration