mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
ACM: don't pass a gps pointer to DCM
after discussion with Randy, we don't want ArduCopter to fall back to GPS for yaw when the compass becomes unhealthy. So we shouldn't pass the gps object to the DCM code at all.
This commit is contained in:
parent
f10097a6d5
commit
698749dd92
@ -220,7 +220,8 @@ AP_InertialSensor_MPU6000 ins( CONFIG_MPU6000_CHIP_SELECT_PIN );
|
||||
AP_InertialSensor_Oilpan ins(&adc);
|
||||
#endif
|
||||
AP_IMU_INS imu(&ins);
|
||||
AP_DCM dcm(&imu, g_gps);
|
||||
// we don't want to use gps for yaw correction on ArduCopter
|
||||
AP_DCM dcm(&imu, NULL);
|
||||
AP_TimerProcess timer_scheduler;
|
||||
|
||||
#elif HIL_MODE == HIL_MODE_SENSORS
|
||||
|
Loading…
Reference in New Issue
Block a user