Browse Source

Tools: sitl_calibration: fix mavlink_packet() for magcal

That controller shouldn't actuate when inactive.
master
Gustavo Jose de Sousa 9 years ago committed by Lucas De Marchi
parent
commit
a136e42d39
  1. 3
      Tools/mavproxy_modules/sitl_calibration.py

3
Tools/mavproxy_modules/sitl_calibration.py

@ -291,6 +291,9 @@ class MagcalController(CalController): @@ -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:

Loading…
Cancel
Save