mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 03:43:33 +08:00
drivers/device/ringbuffer: move into crazyflie syslink (only remaining user)
This commit is contained in:
@@ -68,9 +68,6 @@ CameraCapture::CameraCapture() :
|
||||
|
||||
CameraCapture::~CameraCapture()
|
||||
{
|
||||
/* free any existing reports */
|
||||
delete _trig_buffer;
|
||||
|
||||
camera_capture::g_camera_capture = nullptr;
|
||||
}
|
||||
|
||||
@@ -295,13 +292,6 @@ CameraCapture::reset_statistics(bool reset_seq)
|
||||
int
|
||||
CameraCapture::start()
|
||||
{
|
||||
/* allocate basic report buffers */
|
||||
_trig_buffer = new ringbuffer::RingBuffer(2, sizeof(_trig_s));
|
||||
|
||||
if (_trig_buffer == nullptr) {
|
||||
return PX4_ERROR;
|
||||
}
|
||||
|
||||
// run every 100 ms (10 Hz)
|
||||
ScheduleOnInterval(100000, 10000);
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <drivers/device/ringbuffer.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_input_capture.h>
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
@@ -115,8 +114,6 @@ private:
|
||||
uint32_t overflow;
|
||||
} _trigger{};
|
||||
|
||||
ringbuffer::RingBuffer *_trig_buffer{nullptr};
|
||||
|
||||
bool _capture_enabled{false};
|
||||
bool _gpio_capture{false};
|
||||
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
#include <containers/Array.hpp>
|
||||
#include <drivers/device/device.h>
|
||||
#include <drivers/device/i2c.h>
|
||||
#include <drivers/device/ringbuffer.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_range_finder.h>
|
||||
#include <perf/perf_counter.h>
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
*/
|
||||
|
||||
#include <drivers/device/i2c.h>
|
||||
#include <drivers/device/ringbuffer.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_range_finder.h>
|
||||
#include <lib/conversion/rotation.h>
|
||||
|
||||
Reference in New Issue
Block a user