Rover: reflect renamed function in AP_AHRS

This commit is contained in:
Jonathan Challinger 2015-12-10 14:05:31 -08:00 committed by Andrew Tridgell
parent 6682b27456
commit 6c4f070685

View File

@ -389,7 +389,7 @@ int8_t Rover::test_mag(uint8_t argc, const Menu::arg *argv)
if(medium_loopCounter >= 5){ if(medium_loopCounter >= 5){
if (compass.read()) { if (compass.read()) {
// Calculate heading // Calculate heading
Matrix3f m = ahrs.get_dcm_matrix(); Matrix3f m = ahrs.get_rotation_body_to_ned();
heading = compass.calculate_heading(m); heading = compass.calculate_heading(m);
compass.learn_offsets(); compass.learn_offsets();
} }