|
|
|
@ -903,7 +903,7 @@ test_mag(uint8_t argc, const Menu::arg *argv)
@@ -903,7 +903,7 @@ test_mag(uint8_t argc, const Menu::arg *argv)
|
|
|
|
|
|
|
|
|
|
while(1){ |
|
|
|
|
delay(100); |
|
|
|
|
compass.read(); |
|
|
|
|
if (compass.read()) { |
|
|
|
|
compass.calculate(dcm.get_dcm_matrix()); |
|
|
|
|
Vector3f maggy = compass.get_offsets(); |
|
|
|
|
Serial.printf_P(PSTR("Heading: %ld, XYZ: %d, %d, %d\n"), |
|
|
|
@ -911,6 +911,9 @@ test_mag(uint8_t argc, const Menu::arg *argv)
@@ -911,6 +911,9 @@ test_mag(uint8_t argc, const Menu::arg *argv)
|
|
|
|
|
compass.mag_x, |
|
|
|
|
compass.mag_y, |
|
|
|
|
compass.mag_z); |
|
|
|
|
} else { |
|
|
|
|
Serial.println_P(PSTR("not healthy")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(Serial.available() > 0){ |
|
|
|
|
return (0); |
|
|
|
|