From 2b73b6df70f642e3212248844451229ca0e2d8f0 Mon Sep 17 00:00:00 2001 From: Tony Samaritano Date: Tue, 28 Feb 2023 18:11:05 +0000 Subject: [PATCH] commander: fixes valid mag count in HIL --- .../commander/HealthAndArmingChecks/checks/magnetometerCheck.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/commander/HealthAndArmingChecks/checks/magnetometerCheck.cpp b/src/modules/commander/HealthAndArmingChecks/checks/magnetometerCheck.cpp index e28a8bd134..117a23a2b8 100644 --- a/src/modules/commander/HealthAndArmingChecks/checks/magnetometerCheck.cpp +++ b/src/modules/commander/HealthAndArmingChecks/checks/magnetometerCheck.cpp @@ -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);