diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-19 00:39:06 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-19 00:39:06 +0200 |
commit | d3ae83cb2283591e56ad2999271f7bbd6c756a0d (patch) | |
tree | 90ed454ec664c29022660366205a261a61f85cbf /apps/sensors/sensors.cpp | |
parent | 97726fa67904650c8d82ec7da58924f261deb125 (diff) | |
parent | 5ec5754f26f1059847b7f149bcbdf2b0d11a5115 (diff) | |
download | px4-firmware-d3ae83cb2283591e56ad2999271f7bbd6c756a0d.tar.gz px4-firmware-d3ae83cb2283591e56ad2999271f7bbd6c756a0d.tar.bz2 px4-firmware-d3ae83cb2283591e56ad2999271f7bbd6c756a0d.zip |
Merge branch 'daregger_rate_control' of github.com:PX4/Firmware into calibration
Diffstat (limited to 'apps/sensors/sensors.cpp')
-rw-r--r-- | apps/sensors/sensors.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/sensors/sensors.cpp b/apps/sensors/sensors.cpp index 9a90d7fc5..3e204662a 100644 --- a/apps/sensors/sensors.cpp +++ b/apps/sensors/sensors.cpp @@ -1004,6 +1004,7 @@ Sensors::task_main() * do advertisements */ struct sensor_combined_s raw; + memset(&raw, 0, sizeof(raw)); raw.timestamp = hrt_absolute_time(); raw.battery_voltage_v = BAT_VOL_INITIAL; raw.adc_voltage_v[0] = 0.9f; |