- registerJoystickListener(JoystickListener) - Method in class io.github.thunderbots.lightning.control.JoystickMonitor
-
Registers the given joystick listener so that joystick updates can be sent
to it.
- registerTask(Runnable) - Method in class io.github.thunderbots.lightning.scheduler.TaskScheduler
-
Adds a given Runnable
to be executed in the cycle.
- removeTask(Runnable) - Method in class io.github.thunderbots.lightning.scheduler.TaskScheduler
-
Removes a given Runnable
from the cycle.
- reset() - Method in class io.github.thunderbots.lightning.hardware.Motor.Encoder
-
Resets this encoder.
- resetEncoders() - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Resets the encoder of each motor in the drive system.
- REST - Static variable in class io.github.thunderbots.lightning.hardware.CRServo
-
The power of the servo when the motor is at rest.
- REST_POWER - Static variable in class io.github.thunderbots.lightning.hardware.Motor
-
The power of the motor when the motor is at rest.
- REVERSE - Static variable in class io.github.thunderbots.lightning.hardware.CRServo
-
The maximum power of the servo when the motor is spinning backwards.
- rightBumper() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the right bumper on the joystick is currently
being pressed.
- rightButton() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the right-direction button on the joystick is
currently being pressed.
- rightStickButton() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the right-stick button on the joystick is
currently being pressed.
- rightStickNegativeX() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the x-position of the right stick is below a set threshold, or
false
otherwise.
- rightStickNegativeY() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the y-position of the right stick is below a set threshold, or
false
otherwise.
- rightStickPositiveX() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the x-position of the right stick is above a set threshold, or
false
otherwise.
- rightStickPositiveY() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the y-position of the right stick is above a set threshold, or
false
otherwise.
- rightStickX() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns the current x-position of the right thumb stick.
- rightStickY() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns the current y-position of the right thumb stick.
- rightTrigger() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns the current position of the right trigger on the joystick.
- rightTriggerPressed() - Method in class io.github.thunderbots.lightning.control.Joystick
-
Returns true
if the right trigger value is above the set threshold, or
false
otherwise.
- robot - Variable in class io.github.thunderbots.lightning.opmode.SimpleOpMode
-
The robot that this OpMode is designed for.
- Robot - Class in io.github.thunderbots.lightning.robot
-
Robot
is an abstract class that should be extended by any class representing a
physical robot.
- Robot() - Constructor for class io.github.thunderbots.lightning.robot.Robot
-
Constructs a new Robot
and initializes the drive system
- robotHardware - Static variable in class io.github.thunderbots.lightning.Lightning
-
The HardwareMap
that is used as a portal to all hardware on the robot.
- robotTelemetry - Static variable in class io.github.thunderbots.lightning.utility.Telemetry
-
The telemetry link between the robot controller and the driver station.
- rotate(double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Spins the robot clockwise with the given power.
- ROTATE_POWER_WEIGHT - Static variable in class io.github.thunderbots.lightning.drive.MecanumDrive
-
The relative weight of the clockwise vector over other vectors.
- rotateDegrees(double, double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Spins the robot clockwise with the given power and for the given amount of degrees,
then stops.
- rotateDegreesToTicks(double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Converts between rotation degrees and encoder ticks.
- rotateSeconds(double, double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Spins the robot clockwise with the given power and for the given time, then stops.
- rotateTicks(double, int) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Spins the robot clockwise with the given power and for the given tick distance,
then stops.
- run() - Method in class io.github.thunderbots.lightning.control.JoystickMonitor.MonitorUpdateRunnable
-
- run() - Method in class io.github.thunderbots.lightning.scheduler.TaskScheduler.TaskSchedulerThread
-
- runAllTasks() - Method in class io.github.thunderbots.lightning.scheduler.TaskScheduler
-
Calls the run()
method of all Runnable
objects that have been
registered with this task scheduler.
- runHandlers() - Method in class io.github.thunderbots.lightning.control.JoystickMonitor
-
Checks for updates in the joystick, and forwards those updates to all the
registered joystick listeners.
- runOpMode() - Method in class io.github.thunderbots.lightning.opmode.LightningOpMode
-