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