modify a bug for flight mode switch

This commit is contained in:
robin_shaun 2021-10-03 12:44:50 +08:00
parent 79defaec37
commit 548c8364e2
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ class Communication:
self.mission = msg.data
print(self.vehicle_type+'_'+self.vehicle_id+": "+msg.data)
elif not msg.data == self.flight_mode:
else:
self.flight_mode = msg.data
self.flight_mode_switch()

View File

@ -139,7 +139,7 @@ class Communication:
self.mission = msg.data
print(self.vehicle_type+'_'+self.vehicle_id+": "+msg.data)
elif not msg.data == self.flight_mode:
else:
self.flight_mode = msg.data
self.flight_mode_switch()