Copter: avoid copying the DCM matrix

This commit is contained in:
Andrew Tridgell 2013-05-05 15:02:51 +10:00
parent 23d9c31b0a
commit 703a1ba438

View File

@ -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();
}