mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-15 21:05:40 +08:00
DCM: use the new use_for_yaw() compass method
This commit is contained in:
1 parent
664622523d
commit
eb71b26d3f
1 file changed
+1
-1
@@ -391,7 +391,7 @@ AP_DCM::drift_correction(void)
|
||||
|
||||
//*****YAW***************
|
||||
|
||||
if (_compass && _compass->healthy) {
|
||||
if (_compass && _compass->use_for_yaw()) {
|
||||
if (_have_initial_yaw) {
|
||||
// Equation 23, Calculating YAW error
|
||||
// We make the gyro YAW drift correction based
|
||||
|
||||
Reference in new issue
Block a user