mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:33:35 +08:00
Addressed C99 compiler issues of initializing variables in header and unused included statements.
This commit is contained in:
@@ -226,7 +226,7 @@ void EstimatorInterface::setRangeData(uint64_t time_usec, float *data)
|
||||
}
|
||||
|
||||
if (time_usec - _time_last_range > 45000) {
|
||||
rangeSample range_sample_new;
|
||||
rangeSample range_sample_new = {};
|
||||
range_sample_new.rng = *data;
|
||||
rng = *data;
|
||||
range_sample_new.time_us -= _params.range_delay_ms * 1000;
|
||||
|
||||
Reference in New Issue
Block a user