File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -453,8 +453,10 @@ void AHRS_type::handle_magnetic_calibration ( char type)
453453 for ( unsigned i=0 ; i<3 ; ++i)
454454 magnetic_induction_report.calibration [i] = (compass_calibration.get_calibration ())[i];
455455
456+ #if USE_EARTH_INDUCTION_DATA_COLLECTOR
456457 magnetic_induction_report.nav_induction =new_induction_estimate;
457458 magnetic_induction_report.nav_induction_std_deviation = induction_error;
459+ #endif
458460
459461 report_magnetic_calibration_has_changed ( &magnetic_induction_report, type);
460462 magnetic_calibration_updated = true ;
Original file line number Diff line number Diff line change 1010
1111#include "compass_calibration.h"
1212#include "float3vector.h"
13+ #include "NAV_tuning_parameters.h"
1314
1415struct magnetic_induction_report_t
1516{
1617 single_axis_calibration_t calibration [3 ];
18+ #if USE_EARTH_INDUCTION_DATA_COLLECTOR
1719 float3vector nav_induction ;
1820 float nav_induction_std_deviation ;
21+ #endif
1922};
2023
2124void report_magnetic_calibration_has_changed ( magnetic_induction_report_t * p_magnetic_induction_report , char type );
You can’t perform that action at this time.
0 commit comments