mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Replay: Don't log EKF optical flow data if not required
This commit is contained in:
parent
b99b3c7b9d
commit
9c8406998b
@ -312,7 +312,7 @@ static void read_sensors(uint8_t type)
|
||||
inertial_nav.update(ins.get_delta_time());
|
||||
}
|
||||
hal.scheduler->stop_clock(hal.scheduler->micros() + (i+1)*update_delta_usec);
|
||||
dataflash.Log_Write_EKF(ahrs);
|
||||
dataflash.Log_Write_EKF(ahrs,optflow.enabled());
|
||||
dataflash.Log_Write_AHRS2(ahrs);
|
||||
ins.set_gyro(0, ins.get_gyro());
|
||||
ins.set_accel(0, ins.get_accel());
|
||||
|
Loading…
Reference in New Issue
Block a user