mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 14:23:34 +08:00
uavcan: add IMU sensor support
This commit is contained in:
@@ -62,6 +62,8 @@ public:
|
||||
|
||||
void updateFIFO(sensor_accel_fifo_s &sample);
|
||||
|
||||
int get_instance() { return _sensor_pub.get_instance(); };
|
||||
|
||||
private:
|
||||
void Publish(const hrt_abstime ×tamp_sample, float x, float y, float z, uint8_t clip_count[3],
|
||||
uint8_t samples = 1);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2018-2020 PX4 Development Team. All rights reserved.
|
||||
@@ -61,6 +62,8 @@ public:
|
||||
|
||||
void updateFIFO(sensor_gyro_fifo_s &sample);
|
||||
|
||||
int get_instance() { return _sensor_pub.get_instance(); };
|
||||
|
||||
private:
|
||||
void Publish(const hrt_abstime ×tamp_sample, float x, float y, float z, uint8_t samples = 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user