mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 01:11:37 +08:00
bmi088: fix accel schedule interval
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#include "BMI088_accel.hpp"
|
#include "BMI088_accel.hpp"
|
||||||
|
|
||||||
|
using namespace time_literals;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Global variable of the accelerometer temperature reading, to read it in the bmi055_gyro driver. The variable is changed in bmi055_accel.cpp.
|
* Global variable of the accelerometer temperature reading, to read it in the bmi055_gyro driver. The variable is changed in bmi055_accel.cpp.
|
||||||
* This is a HACK! The driver should be rewritten with the gyro as subdriver.
|
* This is a HACK! The driver should be rewritten with the gyro as subdriver.
|
||||||
@@ -328,7 +330,7 @@ BMI088_accel::start()
|
|||||||
reset();
|
reset();
|
||||||
|
|
||||||
/* start polling at the specified rate */
|
/* start polling at the specified rate */
|
||||||
ScheduleOnInterval(BMI088_ACCEL_DEFAULT_RATE - BMI088_TIMER_REDUCTION, 1000);
|
ScheduleOnInterval((1_s / BMI088_ACCEL_DEFAULT_RATE) - BMI088_TIMER_REDUCTION, 1000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user