File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -407,19 +407,15 @@ void AHRS_type::handle_magnetic_calibration ( void)
407407{
408408 bool calibration_changed = compass_calibration.set_calibration_if_changed ( mag_calibration_data_collector_right_turn, mag_calibration_data_collector_left_turn, MAG_SCALE);
409409
410- #if REPORT_MAGNETIC_CALIBRATION == 1
411-
412410 if ( calibration_changed)
413411 {
412+ #if REPORT_MAGNETIC_CALIBRATION == 1
414413 magnetic_induction_report_t magnetic_induction_report;
415414 for ( unsigned i=0 ; i<3 ; ++i)
416415 magnetic_induction_report.calibration [i] = (compass_calibration.get_calibration ())[i];
417-
416+ # endif
418417 magnetic_calibration_updated = true ;
419418 }
420- #else
421- (void )calibration_changed;
422- #endif
423419}
424420
425421void AHRS_type::filter_magnetic_induction ( const float3vector &gyro, float3vector &mag)
You can’t perform that action at this time.
0 commit comments