Skip to content

Commit

Permalink
LP-564 Add comments about ArmedField.ARMED
Browse files Browse the repository at this point in the history
  • Loading branch information
f5soh committed Dec 10, 2017
1 parent f8d32a3 commit 2e8c357
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def driveInput(self):
self.objMan.ManualControlCommand.updated()

print "Arming board using Yaw right"
# FIXME: Seems there is a issue with ArmedField.ARMED, 2 equals to the ARMED state
while (self.objMan.FlightStatus.Armed.value != 2):
self.objMan.ManualControlCommand.Yaw.value = 1
self.objMan.ManualControlCommand.updated()
Expand Down Expand Up @@ -230,6 +231,7 @@ def driveInput(self):
time.sleep(1)

print "Disarming board using Yaw left"
# FIXME: Seems there is a issue with ArmedField.DISARMED, 0 equals to the DISARMED state
while (self.objMan.FlightStatus.Armed.value != 0):
self.objMan.ManualControlCommand.Yaw.value = -1
self.objMan.ManualControlCommand.updated()
Expand Down

0 comments on commit 2e8c357

Please sign in to comment.