mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Compass: fixed build warning on g++ 10.2
This commit is contained in:
parent
da3ff2c142
commit
aa0a77049e
@ -164,7 +164,9 @@ void CompassLearn::update(void)
|
|||||||
sample_available = false;
|
sample_available = false;
|
||||||
num_samples = 0;
|
num_samples = 0;
|
||||||
have_earth_field = false;
|
have_earth_field = false;
|
||||||
memset(predicted_offsets, 0, sizeof(predicted_offsets));
|
for (auto &v : predicted_offsets) {
|
||||||
|
v.zero();
|
||||||
|
}
|
||||||
worst_error = 0;
|
worst_error = 0;
|
||||||
best_error = 0;
|
best_error = 0;
|
||||||
best_yaw_deg = 0;
|
best_yaw_deg = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user