IMU: parameterize IMU integration time (IMU_INTEG_RATE)

- default integration rate now 200 Hz (5000 us interval)
 - set update rate for all drivers and simulators using PX4Accelerometer/PX4Gyroscope
This commit is contained in:
Daniel Agar
2020-05-05 20:34:09 -04:00
committed by GitHub
parent 682aa700bb
commit ca998c1822
24 changed files with 133 additions and 12 deletions
+2
View File
@@ -95,6 +95,8 @@ Sih::Sih() :
_loop_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": execution")),
_sampling_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": sampling"))
{
_px4_accel.set_update_rate(LOOP_INTERVAL);
_px4_gyro.set_update_rate(LOOP_INTERVAL);
}
void Sih::run()