AP_Compass: add samples to calibrator when published
This commit is contained in:
parent
cc36401b7c
commit
72c8d0f530
@ -47,6 +47,8 @@ void AP_Compass_Backend::publish_raw_field(const Vector3f &mag, uint32_t time_us
|
||||
state.raw_meas_time_us = time_us;
|
||||
state.updated_raw_field = true;
|
||||
state.has_raw_field = true;
|
||||
|
||||
_compass._calibrator[instance].new_sample(mag);
|
||||
}
|
||||
|
||||
void AP_Compass_Backend::correct_field(Vector3f &mag, uint8_t i)
|
||||
|
Loading…
Reference in New Issue
Block a user