Beispiel #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)
 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)
Beispiel #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)
Beispiel #5
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Start stopwatch
     self._stopwatch.start()
     return Command.initialize(self)
 def initialize(self):
     """Called before the Command is run for the first time."""
     return Command.initialize(self)
Beispiel #7
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     return Command.initialize(self)
Beispiel #8
0
 def initialize(self):
     """Called before the Command is run for the first time."""
     # Start stopwatch
     self._stopwatch.start()
     return Command.initialize(self)