mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 06:50:35 +08:00
commander: fixes valid mag count in HIL
This commit is contained in:
committed by
Beat Küng
parent
d6b523b574
commit
2b73b6df70
@@ -65,6 +65,7 @@ void MagnetometerChecks::checkAndReport(const Context &context, Report &reporter
|
||||
|
||||
if (context.status().hil_state == vehicle_status_s::HIL_STATE_ON) {
|
||||
is_calibration_valid = true;
|
||||
num_enabled_and_valid_calibration++;
|
||||
|
||||
} else {
|
||||
int calibration_index = calibration::FindCurrentCalibrationIndex("MAG", mag_data.device_id);
|
||||
|
||||
Reference in New Issue
Block a user