Skip to content

Commit

Permalink
Don't backup during solar panels stage
Browse files Browse the repository at this point in the history
  • Loading branch information
DaAdri committed Jun 12, 2024
1 parent 0f8a2b4 commit b2a4a03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions robot1/rasp/brains/main_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ async def game(self):
await asyncio.sleep(0.5)

# Solar panels stage
self.anticollision_handle = AntiCollisionHandle.WAIT_AND_FAIL
solar_panel_control = asyncio.create_task(self.control_solar_panels())
self.logger.log("Starting solar panels stage...", LogLevels.INFO, self.leds)
await self.solar_panels_stage()
Expand All @@ -265,6 +266,7 @@ async def game(self):
self.leds,
)

self.anticollision_handle = AntiCollisionHandle.BACKUP_AND_RETRY
await self.plant_stage()

self.logger.log("Going to regular endzone if needed", LogLevels.INFO)
Expand Down

0 comments on commit b2a4a03

Please sign in to comment.