forked from Archive/PX4-Autopilot
Initialized all sensor fields to zero
This commit is contained in:
parent
d4e6a9d7a1
commit
e4645c0a41
|
@ -993,6 +993,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;
|
||||
|
|
Loading…
Reference in New Issue