mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:48:52 +08:00
delete drv_baro.h, drv_mag.h, drv_range_finder.h, drv_device.h and purge UAVCAN CDev usage
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
|
||||
#include <containers/Array.hpp>
|
||||
#include <drivers/device/i2c.h>
|
||||
#include <drivers/drv_range_finder.h>
|
||||
#include <perf/perf_counter.h>
|
||||
#include <px4_platform_common/getopt.h>
|
||||
#include <px4_platform_common/module_params.h>
|
||||
@@ -192,6 +191,8 @@ private:
|
||||
*/
|
||||
int get_sensor_rotation(const size_t index);
|
||||
|
||||
static constexpr int RANGE_FINDER_MAX_SENSORS = 12;
|
||||
|
||||
px4::Array<uint8_t, RANGE_FINDER_MAX_SENSORS> _sensor_addresses {};
|
||||
px4::Array<uint8_t, RANGE_FINDER_MAX_SENSORS> _sensor_rotations {};
|
||||
|
||||
|
||||
@@ -57,7 +57,6 @@
|
||||
#include <drivers/device/device.h>
|
||||
#include <drivers/device/i2c.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <drivers/drv_range_finder.h>
|
||||
#include <perf/perf_counter.h>
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <px4_platform_common/getopt.h>
|
||||
@@ -144,6 +143,7 @@ private:
|
||||
*/
|
||||
int measure();
|
||||
|
||||
static constexpr uint8_t RANGE_FINDER_MAX_SENSORS = 4;
|
||||
px4::Array<uint8_t, RANGE_FINDER_MAX_SENSORS> _sensor_addresses {};
|
||||
px4::Array<uint8_t, RANGE_FINDER_MAX_SENSORS> _sensor_rotations {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user