- scaleJoystickInput(double) - Static method in class io.github.thunderbots.lightning.control.Joystick
-
Scales the given input value to a number between the rest position and the maximum
position of the thumb stick, based on its relative position between the minimum and
maximum positions.
- scaleToRange(double, double[], double[]) - Static method in class io.github.thunderbots.lightning.utility.MathUtil
-
Scales a number within some range to a corresponding position relative to another
range.
- sendData(String, Object) - Static method in class io.github.thunderbots.lightning.utility.Telemetry
-
Sends given data from the robot controller to the driver station.
- sendData(Object) - Static method in class io.github.thunderbots.lightning.utility.Telemetry
-
- sendMotor(Motor) - Static method in class io.github.thunderbots.lightning.utility.Telemetry
-
Sends motor data from the robot controller to the driver station.
- sendMotorPosition(Motor) - Static method in class io.github.thunderbots.lightning.utility.Telemetry
-
Sends motor data from the robot controller to the driver station.
- sendMotorPower(Motor) - Static method in class io.github.thunderbots.lightning.utility.Telemetry
-
Sends motor data from the robot controller to the driver station.
- sendServoPosition(Servo) - Static method in class io.github.thunderbots.lightning.utility.Telemetry
-
Sends servo data from the robot controller to the driver station.
- sensorMaps - Static variable in class io.github.thunderbots.lightning.Lightning
-
A list of all the DeviceMapping
s exposed by the hardware map that could
point to sensors.
- Servo - Class in io.github.thunderbots.lightning.hardware
-
A Servo
represents any physical servo on that is connected to the robot.
- Servo(Servo) - Constructor for class io.github.thunderbots.lightning.hardware.Servo
-
Constructs a new servo that uses the given robotcore Servo
as a base.
- setCenterPosition(double) - Method in class io.github.thunderbots.lightning.hardware.Servo
-
Sets the 'center' position of this servo.
- setEncoderTicksPerDriveInch(double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Sets the amount of ticks that should be expected if the robot drives forward one inch.
- setEncoderTicksPerRotationDegree(double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Sets the amount of ticks that should be expected if the robot rotates one degree.
- setEncoderTicksPerSwingDegree(double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Sets the amount of ticks that should be expected if the robot swings one degree.
- setMotorPower(double) - Method in class io.github.thunderbots.lightning.hardware.MotorSet
-
Sets the power of all the motors in this set to the given power.
- setMotorPowers(double[]) - Method in class io.github.thunderbots.lightning.hardware.MotorSet
-
Sets the power of the motors in this motor set from the corresponding power values in
the given double array.
- setMovement(double, double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Sets the power of the motors on the robot so that the robot moves as described by
the two vectors.
- setMovement(double, double) - Method in class io.github.thunderbots.lightning.drive.MecanumDrive
-
- setMovement(double, double, double) - Method in class io.github.thunderbots.lightning.drive.MecanumDrive
-
Sets the power of the motors on the robot so that the robot moves as described by
the three vectors.
- setMovement(double, double, double) - Method in class io.github.thunderbots.lightning.drive.TankDrive
-
- setMovement() - Method in class io.github.thunderbots.lightning.opmode.TeleOp
-
Sets the instantaneous movement of the robot based on readings from the joysticks.
- setMovement() - Method in class io.github.thunderbots.lightning.opmode.TeleOpTest
-
- setPower(double) - Method in class io.github.thunderbots.lightning.hardware.CRServo
-
- setPower(double) - Method in class io.github.thunderbots.lightning.hardware.Motor
-
Sets the movement power of this motor.
- setReversed(boolean) - Method in class io.github.thunderbots.lightning.hardware.CRServo
-
- setReversed(boolean) - Method in class io.github.thunderbots.lightning.hardware.Motor
-
Sets if the motor's output direction is reversed from its inputs.
- setRobot(Robot) - Method in class io.github.thunderbots.lightning.opmode.SimpleOpMode
-
Sets the robot to use for this op mode.
- setTelemetry(Telemetry) - Static method in class io.github.thunderbots.lightning.utility.Telemetry
-
- setTicksPerInch(double) - Method in class io.github.thunderbots.lightning.hardware.Motor.Encoder
-
Sets the number of encoder ticks that measure one inch on the circumference of
the wheel.
- setTicksPerRevolution(double) - Method in class io.github.thunderbots.lightning.hardware.Motor.Encoder
-
Sets the number of encoder ticks that measure exactly one full rotation of the
motor.
- side - Variable in enum io.github.thunderbots.lightning.utility.Alliance
-
The integer that represents the side of the field.
- SimpleOpMode - Class in io.github.thunderbots.lightning.opmode
-
A SimpleOpMode
is an op mode that is designed to make the op mode programming
process very easy.
- SimpleOpMode() - Constructor for class io.github.thunderbots.lightning.opmode.SimpleOpMode
-
- sleep(long) - Static method in class io.github.thunderbots.lightning.utility.Util
-
Blocks the thread for the given amount of milliseconds.
- stop() - Method in class io.github.thunderbots.lightning.hardware.Motor
-
Stops the motor.
- stopAllMotors() - Method in class io.github.thunderbots.lightning.hardware.MotorSet
-
Stops all the motors in this motor set
- strafe(int) - Method in class io.github.thunderbots.lightning.drive.MecanumDrive
-
Strafes (moves sideways) with the given power.
- STRAFE_POWER_WEIGHT - Static variable in class io.github.thunderbots.lightning.drive.MecanumDrive
-
The relative weight of the right vector over other vectors.
- strafeSeconds(int, float) - Method in class io.github.thunderbots.lightning.drive.MecanumDrive
-
Strafes (moves sideways) with the given power and for the given amount of time, and
then stops.
- swing(boolean, double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Swings the robot with the given spin and forward power.
- swingDegrees(boolean, double, double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Swings the robot with the given spin and forward power, and for the given amount of degrees,
then stops.
- swingDegreesToTicks(double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Converts between swing degrees and encoder ticks.
- swingSeconds(boolean, double, double) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Swings the robot with the given spin and forward power, then stops after the given
amount of time.
- swingTicks(boolean, double, int) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Swings the robot with the given spin and forward power, and for the given tick distance,
then stops.