Skip navigation links
A B C D E F G H I J L M O P R S T U V W X Y Z 

S

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
Deprecated.
Since this method is a delegate that substitutes an empty string for the tag, all objects that are sent with this method will have an identical tag. The telemetry system assumes that multiple objects sent with the same tag are just different versions of the same information, and that only the most recent version of the object is the 'correct' version. If multiple objects are sent with the same tag, only the most recently sent object will be displayed, and all others will be discarded. This makes it very impractical to send data with an empty tag, because the telemetry system will discard potentially important data.
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 DeviceMappings 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
Deprecated.
A tank drive system cannot accept a right-facing vector as an argument for movement. The purpose of this method is only to filter out any possible right-facing, non-zero vector argument to prevent damage to the physical motors.

Instead of this method, use the two-argument version, which accepts only forward and clockwise vectors. This method is declared in DriveSystem and implemented in MecanumDrive.

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.
A B C D E F G H I J L M O P R S T U V W X Y Z 
Skip navigation links