mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: reflect renamed function in AP_AHRS
This commit is contained in:
parent
6682b27456
commit
6c4f070685
@ -389,7 +389,7 @@ int8_t Rover::test_mag(uint8_t argc, const Menu::arg *argv)
|
||||
if(medium_loopCounter >= 5){
|
||||
if (compass.read()) {
|
||||
// Calculate heading
|
||||
Matrix3f m = ahrs.get_dcm_matrix();
|
||||
Matrix3f m = ahrs.get_rotation_body_to_ned();
|
||||
heading = compass.calculate_heading(m);
|
||||
compass.learn_offsets();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user