mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
df_mpu9250_wrapper: publish at 250 Hz
This commit is contained in:
parent
393bcad4b6
commit
b04cfd3eee
@ -64,6 +64,10 @@
|
||||
#include <DevMgr.hpp>
|
||||
|
||||
|
||||
// publish frequency of 250 Hz
|
||||
#define MPU9250_PUBLISH_INTERVAL_US 4000
|
||||
|
||||
|
||||
extern "C" { __EXPORT int df_mpu9250_wrapper_main(int argc, char *argv[]); }
|
||||
|
||||
using namespace DriverFramework;
|
||||
@ -141,8 +145,8 @@ DfMpu9250Wrapper::DfMpu9250Wrapper(/*enum Rotation rotation*/) :
|
||||
_gyro_calibration{},
|
||||
_accel_orb_class_instance(-1),
|
||||
_gyro_orb_class_instance(-1),
|
||||
_accel_int(MPU9250_MEASURE_INTERVAL_US, true),
|
||||
_gyro_int(MPU9250_MEASURE_INTERVAL_US, true),
|
||||
_accel_int(MPU9250_PUBLISH_INTERVAL_US, true),
|
||||
_gyro_int(MPU9250_PUBLISH_INTERVAL_US, true),
|
||||
_accel_sample_perf(perf_alloc(PC_ELAPSED, "df_accel_read")),
|
||||
_gyro_sample_perf(perf_alloc(PC_ELAPSED, "df_gyro_read"))
|
||||
/*_rotation(rotation)*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user