コード例 #1
0
ファイル: autonomous.py プロジェクト: ruwix/offseason2020
 def pickMode(self, initial_call):
     mode = AutoMode.STEAL
     if mode == AutoMode.LAWFUL:
         PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_LAWFUL)
         self.next_state("collectTrenchRunBalls")
     elif mode == AutoMode.STEAL:
         PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_STEAL)
         self.next_state("stealTrenchRunBalls")
     elif mode == AutoMode.RENDEZVOUS:
         PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_CENTER)
         self.next_state("collectTwoRendezvousBalls")
     else:
         self.next_state("success")
コード例 #2
0
ファイル: autonomous.py プロジェクト: ruwix/offseason2020
 def setup(self):
     PhysicsEngine.setSimulationPose(waypoints.Waypoints.START_LAWFUL)