mirror of https://github.com/ArduPilot/ardupilot
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
051bd78b37
commit
ce5c7c2c85
|
@ -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