mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
ArduSub: move VehicleClass handling to AHRS frontend
.... and renaming the enumeration while we're at it
This commit is contained in:
parent
515a994c59
commit
9f8d01827a
@ -177,7 +177,7 @@ void Sub::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_SUBMARINE);
|
ahrs.set_vehicle_class(AP_AHRS::VehicleClass::SUBMARINE);
|
||||||
|
|
||||||
// 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());
|
||||||
|
Loading…
Reference in New Issue
Block a user