mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 19:11:36 +08:00
delete drv_accel.h ACCELx_DEVICE_PATH
This commit is contained in:
committed by
Lorenz Meier
parent
2a83a40491
commit
f21f1a1357
@@ -47,9 +47,6 @@
|
|||||||
#include "drv_orb_dev.h"
|
#include "drv_orb_dev.h"
|
||||||
|
|
||||||
#define ACCEL_BASE_DEVICE_PATH "/dev/accel"
|
#define ACCEL_BASE_DEVICE_PATH "/dev/accel"
|
||||||
#define ACCEL0_DEVICE_PATH "/dev/accel0"
|
|
||||||
#define ACCEL1_DEVICE_PATH "/dev/accel1"
|
|
||||||
#define ACCEL2_DEVICE_PATH "/dev/accel2"
|
|
||||||
|
|
||||||
#include <uORB/topics/sensor_accel.h>
|
#include <uORB/topics/sensor_accel.h>
|
||||||
|
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ struct {
|
|||||||
const char *path;
|
const char *path;
|
||||||
int (* test)(int argc, char *argv[], const char *path);
|
int (* test)(int argc, char *argv[], const char *path);
|
||||||
} sensors[] = {
|
} sensors[] = {
|
||||||
{"accel0", ACCEL0_DEVICE_PATH, accel},
|
{"accel0", "/dev/accel0", accel},
|
||||||
{"accel1", ACCEL1_DEVICE_PATH, accel},
|
{"accel1", "/dev/accel1", accel},
|
||||||
{"gyro0", GYRO0_DEVICE_PATH, gyro},
|
{"gyro0", GYRO0_DEVICE_PATH, gyro},
|
||||||
{"gyro1", GYRO1_DEVICE_PATH, gyro},
|
{"gyro1", GYRO1_DEVICE_PATH, gyro},
|
||||||
{"mag0", MAG0_DEVICE_PATH, mag},
|
{"mag0", MAG0_DEVICE_PATH, mag},
|
||||||
|
|||||||
Reference in New Issue
Block a user