Commit f9238f7e authored by Lorenz Meier's avatar Lorenz Meier

UAS: Add ability to calibrate horizon to level

parent 8df3e097
...@@ -1472,6 +1472,9 @@ void UAS::startCalibration(UASInterface::StartCalibrationType calType) ...@@ -1472,6 +1472,9 @@ void UAS::startCalibration(UASInterface::StartCalibrationType calType)
case StartCalibrationAccel: case StartCalibrationAccel:
accelCal = 1; accelCal = 1;
break; break;
case StartCalibrationLevel:
accelCal = 2;
break;
} }
mavlink_message_t msg; mavlink_message_t msg;
......
...@@ -243,7 +243,8 @@ public: ...@@ -243,7 +243,8 @@ public:
StartCalibrationGyro, StartCalibrationGyro,
StartCalibrationMag, StartCalibrationMag,
StartCalibrationAirspeed, StartCalibrationAirspeed,
StartCalibrationAccel StartCalibrationAccel,
StartCalibrationLevel
}; };
/// Starts the specified calibration /// Starts the specified calibration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment