mirror of https://github.com/ArduPilot/ardupilot
Rover: Don't log EKF optical flow data if not required
This commit is contained in:
parent
695f12bec0
commit
ee75f26edb
|
@ -319,7 +319,7 @@ static void Log_Write_Attitude()
|
|||
};
|
||||
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
||||
#if AP_AHRS_NAVEKF_AVAILABLE
|
||||
DataFlash.Log_Write_EKF(ahrs);
|
||||
DataFlash.Log_Write_EKF(ahrs,optflow.enabled()) {);
|
||||
DataFlash.Log_Write_AHRS2(ahrs);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue