Rover: Don't log EKF optical flow data if not required

This commit is contained in:
priseborough 2014-12-24 07:40:40 +11:00 committed by Randy Mackay
parent 695f12bec0
commit ee75f26edb
1 changed files with 1 additions and 1 deletions

View File

@ -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
}