mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Copter: avoid copying the DCM matrix
This commit is contained in:
parent
23d9c31b0a
commit
703a1ba438
@ -475,7 +475,7 @@ test_mag(uint8_t argc, const Menu::arg *argv)
|
||||
if(medium_loopCounter == 5) {
|
||||
if (compass.read()) {
|
||||
// Calculate heading
|
||||
Matrix3f m = ahrs.get_dcm_matrix();
|
||||
const Matrix3f &m = ahrs.get_dcm_matrix();
|
||||
heading = compass.calculate_heading(m);
|
||||
compass.null_offsets();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user