mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 14:03:35 +08:00
MEAS airspeed: Stricter initialization and constructors
This commit is contained in:
@@ -140,9 +140,9 @@ extern "C" __EXPORT int meas_airspeed_main(int argc, char *argv[]);
|
|||||||
MEASAirspeed::MEASAirspeed(int bus, int address, const char *path) : Airspeed(bus, address,
|
MEASAirspeed::MEASAirspeed(int bus, int address, const char *path) : Airspeed(bus, address,
|
||||||
CONVERSION_INTERVAL, path),
|
CONVERSION_INTERVAL, path),
|
||||||
_filter(MEAS_RATE, MEAS_DRIVER_FILTER_FREQ),
|
_filter(MEAS_RATE, MEAS_DRIVER_FILTER_FREQ),
|
||||||
_t_system_power(-1)
|
_t_system_power(-1),
|
||||||
|
system_power{}
|
||||||
{
|
{
|
||||||
memset(&system_power, 0, sizeof(system_power));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|||||||
@@ -40,3 +40,5 @@ MODULE_COMMAND = meas_airspeed
|
|||||||
SRCS = meas_airspeed.cpp
|
SRCS = meas_airspeed.cpp
|
||||||
|
|
||||||
MODULE_STACKSIZE = 1200
|
MODULE_STACKSIZE = 1200
|
||||||
|
|
||||||
|
EXTRACXXFLAGS = -Weffc++
|
||||||
|
|||||||
Reference in New Issue
Block a user