|
|
@ -1066,7 +1066,7 @@ static void update_batt_compass(void) |
|
|
|
// update compass with throttle value - used for compassmot |
|
|
|
// update compass with throttle value - used for compassmot |
|
|
|
compass.set_throttle((float)g.rc_3.servo_out/1000.0f); |
|
|
|
compass.set_throttle((float)g.rc_3.servo_out/1000.0f); |
|
|
|
if (compass.read()) { |
|
|
|
if (compass.read()) { |
|
|
|
compass.null_offsets(); |
|
|
|
compass.learn_offsets(); |
|
|
|
} |
|
|
|
} |
|
|
|
// log compass information |
|
|
|
// log compass information |
|
|
|
if (g.log_bitmask & MASK_LOG_COMPASS) { |
|
|
|
if (g.log_bitmask & MASK_LOG_COMPASS) { |
|
|
|