Skip to content

Commit

Permalink
Fix potential bug in start state #23
Browse files Browse the repository at this point in the history
  • Loading branch information
RexBerry committed Oct 2, 2024
1 parent 711f739 commit 4ca9dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state_machine/states/impl/start_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def run(self: Start) -> State:
logging.info("-- Arming")
self.drone.vehicle.mode = dronekit.VehicleMode("GUIDED")
self.drone.vehicle.armed = True
while self.drone.vehicle.mode != "GUIDED" or not self.drone.vehicle.armed:
while self.drone.vehicle.mode.name != "GUIDED" or not self.drone.vehicle.armed:
await asyncio.sleep(0.5)

logging.info("Start state complete")
Expand Down

0 comments on commit 4ca9dfa

Please sign in to comment.