mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 16:30:34 +08:00
drivers: use new ringbuffer namespace everywhere
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
*/
|
||||
|
||||
#include "baro.hpp"
|
||||
#include <drivers/device/ringbuffer.h>
|
||||
#include <cmath>
|
||||
|
||||
const char *const UavcanBarometerBridge::NAME = "baro";
|
||||
@@ -56,7 +55,7 @@ int UavcanBarometerBridge::init()
|
||||
}
|
||||
|
||||
/* allocate basic report buffers */
|
||||
_reports = new RingBuffer(2, sizeof(baro_report));
|
||||
_reports = new ringbuffer::RingBuffer(2, sizeof(baro_report));
|
||||
if (_reports == nullptr)
|
||||
return -1;
|
||||
|
||||
|
||||
@@ -39,11 +39,10 @@
|
||||
|
||||
#include "sensor_bridge.hpp"
|
||||
#include <drivers/drv_baro.h>
|
||||
#include <drivers/device/ringbuffer.h>
|
||||
|
||||
#include <uavcan/equipment/air_data/StaticAirData.hpp>
|
||||
|
||||
class RingBuffer;
|
||||
|
||||
class UavcanBarometerBridge : public UavcanCDevSensorBridgeBase
|
||||
{
|
||||
public:
|
||||
@@ -68,5 +67,5 @@ private:
|
||||
|
||||
uavcan::Subscriber<uavcan::equipment::air_data::StaticAirData, AirDataCbBinder> _sub_air_data;
|
||||
unsigned _msl_pressure = 101325;
|
||||
RingBuffer *_reports;
|
||||
ringbuffer::RingBuffer *_reports;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user