forked from Archive/PX4-Autopilot
meas_airspeed rename to ms4525_airspeed
This commit is contained in:
parent
7029be87c0
commit
73d9358b1d
|
@ -25,7 +25,7 @@ set(config_module_list
|
|||
drivers/pwm_out_sim
|
||||
drivers/airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
#drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -37,7 +37,7 @@ set(config_module_list
|
|||
drivers/blinkm
|
||||
drivers/airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -40,7 +40,7 @@ set(config_module_list
|
|||
drivers/blinkm
|
||||
drivers/airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -35,7 +35,7 @@ set(config_module_list
|
|||
drivers/blinkm
|
||||
drivers/airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -39,7 +39,7 @@ set(config_module_list
|
|||
drivers/airspeed
|
||||
drivers/sdp3x_airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -38,7 +38,7 @@ set(config_module_list
|
|||
drivers/blinkm
|
||||
drivers/airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -32,7 +32,7 @@ set(config_module_list
|
|||
drivers/ll40ls
|
||||
drivers/lsm303d
|
||||
drivers/mb12xx
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/mkblctrl
|
||||
drivers/mpu6000
|
||||
|
|
|
@ -37,7 +37,7 @@ set(config_module_list
|
|||
drivers/blinkm
|
||||
drivers/airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -33,7 +33,7 @@ set(config_module_list
|
|||
drivers/ll40ls
|
||||
drivers/lsm303d
|
||||
drivers/mb12xx
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/mkblctrl
|
||||
drivers/mpu6000
|
||||
|
|
|
@ -32,7 +32,7 @@ set(config_module_list
|
|||
drivers/lis3mdl
|
||||
drivers/ll40ls
|
||||
drivers/mb12xx
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/mkblctrl
|
||||
drivers/mpu6000
|
||||
|
|
|
@ -35,7 +35,7 @@ set(config_module_list
|
|||
drivers/blinkm
|
||||
drivers/airspeed
|
||||
drivers/ets_airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
drivers/frsky_telemetry
|
||||
modules/sensors
|
||||
|
|
|
@ -24,7 +24,7 @@ set(config_module_list
|
|||
drivers/hmc5883
|
||||
drivers/gps
|
||||
drivers/airspeed
|
||||
drivers/meas_airspeed
|
||||
drivers/ms4525_airspeed
|
||||
drivers/ms5525_airspeed
|
||||
modules/sensors
|
||||
drivers/vmount
|
||||
|
|
|
@ -31,12 +31,12 @@
|
|||
#
|
||||
############################################################################
|
||||
px4_add_module(
|
||||
MODULE drivers__meas_airspeed
|
||||
MAIN meas_airspeed
|
||||
MODULE drivers__ms4525_airspeed
|
||||
MAIN ms4525_airspeed
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
SRCS
|
||||
meas_airspeed.cpp
|
||||
ms4525_airspeed.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
|
@ -131,7 +131,7 @@ protected:
|
|||
/*
|
||||
* Driver 'main' command.
|
||||
*/
|
||||
extern "C" __EXPORT int meas_airspeed_main(int argc, char *argv[]);
|
||||
extern "C" __EXPORT int ms4525_airspeed_main(int argc, char *argv[]);
|
||||
|
||||
MEASAirspeed::MEASAirspeed(int bus, int address, const char *path) : Airspeed(bus, address,
|
||||
CONVERSION_INTERVAL, path),
|
||||
|
@ -436,6 +436,12 @@ start(int i2c_bus)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
/* both versions failed if the init for the MS5525DSO fails, give up */
|
||||
if (OK != g_dev->Airspeed::init()) {
|
||||
PX4_WARN("init fail");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* set the poll rate to default, starts automatic data collection */
|
||||
fd = open(PATH_MS4525, O_RDONLY);
|
||||
|
||||
|
@ -596,7 +602,7 @@ meas_airspeed_usage()
|
|||
}
|
||||
|
||||
int
|
||||
meas_airspeed_main(int argc, char *argv[])
|
||||
ms4525_airspeed_main(int argc, char *argv[])
|
||||
{
|
||||
int i2c_bus = PX4_I2C_BUS_DEFAULT;
|
||||
|
Loading…
Reference in New Issue