meas_airspeed rename to ms4525_airspeed

This commit is contained in:
Daniel Agar
2017-07-06 10:05:07 -04:00
parent 7029be87c0
commit 73d9358b1d
14 changed files with 23 additions and 17 deletions
@@ -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;