Addressed C99 compiler issues of initializing variables in header and unused included statements.

This commit is contained in:
waltjohnson
2016-05-19 09:58:18 -06:00
parent f5e2dabc2b
commit 7c158aa59b
7 changed files with 23 additions and 15 deletions
+1 -1
View File
@@ -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;