ArduCopter: move VehicleClass handling to AHRS frontend

.... and renaming the enumeration while we're at it
This commit is contained in:
Peter Barker 2021-08-12 09:25:34 +10:00 committed by Andrew Tridgell
parent fc6d8222e7
commit 6f5e3bf4ff

View File

@ -213,7 +213,7 @@ void Copter::startup_INS_ground()
{ {
// initialise ahrs (may push imu calibration into the mpu6000 if using that device). // initialise ahrs (may push imu calibration into the mpu6000 if using that device).
ahrs.init(); ahrs.init();
ahrs.set_vehicle_class(AHRS_VEHICLE_COPTER); ahrs.set_vehicle_class(AP_AHRS::VehicleClass::COPTER);
// Warm up and calibrate gyro offsets // Warm up and calibrate gyro offsets
ins.init(scheduler.get_loop_rate_hz()); ins.init(scheduler.get_loop_rate_hz());