File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -400,17 +400,14 @@ void AHRS_type::write_calibration_into_EEPROM( void)
400400 lock_EEPROM ( true );
401401}
402402
403- bool compass_calibrated = false ;
404-
405403void AHRS_type::handle_magnetic_calibration ( char type)
406404{
407405 bool calibration_changed = compass_calibration.set_calibration_if_changed ( mag_calibration_data_collector_right_turn, mag_calibration_data_collector_left_turn, MAG_SCALE);
408406
409407 float3vector new_induction_estimate;
410408
411- if ( ! compass_calibrated && calibration_changed)
409+ if ( calibration_changed)
412410 {
413- compass_calibrated=true ;
414411 magnetic_induction_report_t magnetic_induction_report;
415412 for ( unsigned i=0 ; i<3 ; ++i)
416413 magnetic_induction_report.calibration [i] = (compass_calibration.get_calibration ())[i];
You can’t perform that action at this time.
0 commit comments