Skip to content

Commit

Permalink
Merge pull request #490 from jonasdn:jonasdn/flight_commander_precaution
Browse files Browse the repository at this point in the history
FlightTab: Ensure params are updated in _update_flight_commander
  • Loading branch information
ataffanel authored Mar 24, 2021
2 parents 3d7b289 + e2ebca2 commit 709037b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cfclient/ui/tabs/FlightTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ def _update_flight_commander(self, connected):
)
return

# We cannot know if we have a positioning deck until we get params
if not self.helper.cf.param.is_updated:
self.commanderBox.setEnabled(False)
return

# flowV1 flowV2 LightHouse LPS
position_decks = ['bcFlow', 'bcFlow2', 'bcLighthouse4', 'bcDWM1000']
for deck in position_decks:
Expand Down

0 comments on commit 709037b

Please sign in to comment.