AP_Compass_HMC5843: use new compass backend interface

This commit is contained in:
Jonathan Challinger 2015-03-18 15:17:12 -07:00 committed by Andrew Tridgell
parent 8800d03fce
commit ade39abc7f

View File

@ -462,7 +462,10 @@ void AP_Compass_HMC5843::read()
field.rotate(ROTATION_YAW_90);
}
publish_field(field, _compass_instance);
rotate_field(field, _compass_instance);
correct_field(field, _compass_instance);
publish_filtered_field(field, _compass_instance);
_retry_time = 0;
}