Tools: fix sitl_calibration stopping at calibration report
This commit is contained in:
parent
6a1f43d5df
commit
83d5df257e
@ -300,8 +300,8 @@ class MagcalController(CalController):
|
|||||||
if m.get_type() == 'MAG_CAL_REPORT':
|
if m.get_type() == 'MAG_CAL_REPORT':
|
||||||
# NOTE: This may be not the ideal way to handle it
|
# NOTE: This may be not the ideal way to handle it
|
||||||
if m.compass_id in self.last_progress:
|
if m.compass_id in self.last_progress:
|
||||||
del self.last_progress[m.compass_id]
|
self.last_progress[m.compass_id] = None
|
||||||
if not self.last_progress:
|
if len(self.last_progress.values()) and all(progress == None for progress in self.last_progress.values()):
|
||||||
self.stop()
|
self.stop()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user