diff --git a/Tools/mavproxy_modules/sitl_calibration.py b/Tools/mavproxy_modules/sitl_calibration.py index 417b44cf6e..b7c04ad5d9 100644 --- a/Tools/mavproxy_modules/sitl_calibration.py +++ b/Tools/mavproxy_modules/sitl_calibration.py @@ -291,6 +291,9 @@ class MagcalController(CalController): def mavlink_packet(self, m): super(MagcalController, self).mavlink_packet(m) + if not self.active: + return + if m.get_type() == 'MAG_CAL_REPORT': # NOTE: This may be not the ideal way to handle it if m.compass_id in self.last_progress: