forked from Archive/PX4-Autopilot
BMI055: Bug fix scheduling interval.
This commit is contained in:
parent
a645822ac6
commit
f0dde45303
|
@ -33,6 +33,8 @@
|
|||
|
||||
#include "BMI055_gyro.hpp"
|
||||
|
||||
using namespace time_literals;
|
||||
|
||||
/*
|
||||
list of registers that will be checked in check_registers(). Note
|
||||
that ADDR_WHO_AM_I must be first in the list.
|
||||
|
@ -252,7 +254,7 @@ void
|
|||
BMI055_gyro::start()
|
||||
{
|
||||
/* start polling at the specified rate */
|
||||
ScheduleOnInterval(BMI055_GYRO_DEFAULT_RATE - BMI055_TIMER_REDUCTION, 1000);
|
||||
ScheduleOnInterval((1_s / BMI055_GYRO_DEFAULT_RATE) - BMI055_TIMER_REDUCTION, 1000);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue