Esempio n. 1
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Get initial position
     current = self.robot.drivetrain.get_gyro_angle()
     # Calculate and store target
     self._target_degrees = current + self._degrees_change
     return Command.initialize(self)
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Get initial position
     current = self.robot.drivetrain.get_encoder_value()
     # Calculate and store target
     self._target_position = current + self._encoder_change
     return Command.initialize(self)
Esempio n. 3
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Get initial position
     current = self.robot.drivetrain.get_encoder_value()
     # Calculate and store target
     self._target_position = current + self._encoder_change
     return Command.initialize(self)
Esempio n. 4
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Get initial position
     current = self.robot.drivetrain.get_gyro_angle()
     # Calculate and store target
     self._target_degrees = current + self._degrees_change
     return Command.initialize(self)
Esempio n. 5
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Start stopwatch
     self._stopwatch.start()
     return Command.initialize(self)
Esempio n. 6
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     return Command.initialize(self)
Esempio n. 7
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     return Command.initialize(self)
Esempio n. 8
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Start stopwatch
     self._stopwatch.start()
     return Command.initialize(self)