mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 12:37:36 +08:00
Gyro sim: Add ringbuffer namespace
This commit is contained in:
@@ -221,7 +221,7 @@ private:
|
||||
struct hrt_call _call;
|
||||
unsigned _call_interval;
|
||||
|
||||
RingBuffer *_accel_reports;
|
||||
ringbuffer::RingBuffer *_accel_reports;
|
||||
|
||||
struct accel_scale _accel_scale;
|
||||
float _accel_range_scale;
|
||||
@@ -230,7 +230,7 @@ private:
|
||||
int _accel_orb_class_instance;
|
||||
int _accel_class_instance;
|
||||
|
||||
RingBuffer *_gyro_reports;
|
||||
ringbuffer::RingBuffer *_gyro_reports;
|
||||
|
||||
struct gyro_scale _gyro_scale;
|
||||
float _gyro_range_scale;
|
||||
@@ -571,13 +571,13 @@ GYROSIM::init()
|
||||
}
|
||||
|
||||
/* allocate basic report buffers */
|
||||
_accel_reports = new RingBuffer(2, sizeof(accel_report));
|
||||
_accel_reports = new ringbuffer::RingBuffer(2, sizeof(accel_report));
|
||||
if (_accel_reports == nullptr) {
|
||||
PX4_WARN("_accel_reports creation failed");
|
||||
goto out;
|
||||
}
|
||||
|
||||
_gyro_reports = new RingBuffer(2, sizeof(gyro_report));
|
||||
_gyro_reports = new ringbuffer::RingBuffer(2, sizeof(gyro_report));
|
||||
if (_gyro_reports == nullptr) {
|
||||
PX4_WARN("_gyro_reports creation failed");
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user