mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 18:11:36 +08:00
BMI055: Bug fix scheduling interval.
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#include "BMI055_gyro.hpp"
|
#include "BMI055_gyro.hpp"
|
||||||
|
|
||||||
|
using namespace time_literals;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
list of registers that will be checked in check_registers(). Note
|
list of registers that will be checked in check_registers(). Note
|
||||||
that ADDR_WHO_AM_I must be first in the list.
|
that ADDR_WHO_AM_I must be first in the list.
|
||||||
@@ -252,7 +254,7 @@ void
|
|||||||
BMI055_gyro::start()
|
BMI055_gyro::start()
|
||||||
{
|
{
|
||||||
/* start polling at the specified rate */
|
/* 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
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user