Rover: 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:35 +10:00 committed by Andrew Tridgell
parent 6868557efd
commit 683806714c

View File

@ -261,7 +261,7 @@ void Rover::startup_INS_ground(void)
ahrs.init(); ahrs.init();
// say to EKF that rover only move by going forward // say to EKF that rover only move by going forward
ahrs.set_fly_forward(true); ahrs.set_fly_forward(true);
ahrs.set_vehicle_class(AHRS_VEHICLE_GROUND); ahrs.set_vehicle_class(AP_AHRS::VehicleClass::GROUND);
ins.init(scheduler.get_loop_rate_hz()); ins.init(scheduler.get_loop_rate_hz());
ahrs.reset(); ahrs.reset();