mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
Sub: use DataFlash should_log to determine raw IMU logging
This commit is contained in:
parent
dcad79bdef
commit
7cd794201e
@ -378,9 +378,6 @@ void Sub::one_hz_loop()
|
|||||||
// update position controller alt limits
|
// update position controller alt limits
|
||||||
update_poscon_alt_max();
|
update_poscon_alt_max();
|
||||||
|
|
||||||
// enable/disable raw gyro/accel logging
|
|
||||||
ins.set_raw_logging(should_log(MASK_LOG_IMU_RAW));
|
|
||||||
|
|
||||||
// log terrain data
|
// log terrain data
|
||||||
terrain_logging();
|
terrain_logging();
|
||||||
}
|
}
|
||||||
|
@ -179,8 +179,7 @@ void Sub::init_ardupilot()
|
|||||||
// enable CPU failsafe
|
// enable CPU failsafe
|
||||||
mainloop_failsafe_enable();
|
mainloop_failsafe_enable();
|
||||||
|
|
||||||
ins.set_raw_logging(should_log(MASK_LOG_IMU_RAW));
|
ins.set_log_raw_bit(MASK_LOG_IMU_RAW);
|
||||||
ins.set_dataflash(&DataFlash);
|
|
||||||
|
|
||||||
// init vehicle capabilties
|
// init vehicle capabilties
|
||||||
init_capabilities();
|
init_capabilities();
|
||||||
|
Loading…
Reference in New Issue
Block a user