- getAverageEncoderValue() - Method in class io.github.thunderbots.lightning.hardware.MotorSet
-
Gets the average encoder reading for all the motors in this motor set.
- getAveragePower() - Method in class io.github.thunderbots.lightning.hardware.MotorSet
-
Gets the average power of all the motors in this motor set.
- getCenterPosition() - Method in class io.github.thunderbots.lightning.hardware.Servo
-
Gets the 'center' position of this servo.
- getClockwisePower(Joystick) - Method in interface io.github.thunderbots.lightning.control.layout.ControlLayout
-
Gets the clockwise power that should be sent to the robot based on the current
state of the given joystick.
- getClockwisePower(Joystick) - Method in class io.github.thunderbots.lightning.control.layout.DriveSpinControlLayout
-
- getClockwisePower(Joystick) - Method in class io.github.thunderbots.lightning.control.layout.MecanumControlLayout
-
- getClockwisePower(Joystick) - Method in class io.github.thunderbots.lightning.control.layout.TankControlLayout
-
- getControlLayout() - Method in class io.github.thunderbots.lightning.opmode.TeleOp
-
Gets a reference to the ControlLayout
that this op mode is using.
- getDrive() - Method in class io.github.thunderbots.lightning.robot.Robot
-
Gets a reference to the DriveSystem
being used to control the robot.
- getDriveInches() - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Gets the distance that the robot has driven forward since the last encoder reset.
- getDriveMotorNames() - Method in class io.github.thunderbots.lightning.robot.Robot
-
Gets an array of Strings representing the names of the motors used for driving.
- getDriveTicks() - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Gets the average value in raw ticks of the encoders for driving,
assuming the robot is traveling in a straight line.
- getDriveTicks() - Method in class io.github.thunderbots.lightning.drive.MecanumDrive
-
- getEncoder() - Method in class io.github.thunderbots.lightning.hardware.CRServo
-
- getEncoder() - Method in class io.github.thunderbots.lightning.hardware.Motor
-
Gets the encoder attached to this motor.
- getForwardPower(Joystick) - Method in interface io.github.thunderbots.lightning.control.layout.ControlLayout
-
Gets the forward power that should be sent to the robot based on the current
state of the given joystick.
- getForwardPower(Joystick) - Method in class io.github.thunderbots.lightning.control.layout.DriveSpinControlLayout
-
- getForwardPower(Joystick) - Method in class io.github.thunderbots.lightning.control.layout.MecanumControlLayout
-
- getForwardPower(Joystick) - Method in class io.github.thunderbots.lightning.control.layout.TankControlLayout
-
- getInches() - Method in class io.github.thunderbots.lightning.hardware.Motor.Encoder
-
Gets the current position of the encoder, converted to inches on the wheel
circumference.
- getJoystick(int) - Static method in class io.github.thunderbots.lightning.Lightning
-
Gets a reference to the given joystick.
- getJoystickMonitor(int) - Static method in class io.github.thunderbots.lightning.Lightning
-
Gets a reference to the joystick monitor for the given joystick.
- getMotor(String) - Static method in class io.github.thunderbots.lightning.Lightning
-
Gets a reference to the motor with the given name.
- getMotorArray() - Method in class io.github.thunderbots.lightning.hardware.MotorSet
-
Gets the array of motors that this MotorSet
comprises.
- getMotorSet() - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Gets a reference to the MotorSet
used by this drive system.
- getName() - Method in class io.github.thunderbots.lightning.hardware.CRServo
-
- getName() - Method in class io.github.thunderbots.lightning.hardware.Motor
-
Gets the name of the device as it is defined in the configuration file.
- getName() - Method in class io.github.thunderbots.lightning.hardware.Servo
-
Gets the name of the device as it is defined in the configuration file.
- getPosition() - Method in class io.github.thunderbots.lightning.hardware.Motor.Encoder
-
Gets the current position of the encoder.
- getPosition() - Method in class io.github.thunderbots.lightning.hardware.Servo
-
Gets the current position of this servo.
- getPower() - Method in class io.github.thunderbots.lightning.hardware.CRServo
-
- getPower() - Method in class io.github.thunderbots.lightning.hardware.Motor
-
Gets the current movement power of this motor.
- getRawPosition() - Method in class io.github.thunderbots.lightning.hardware.CRServo
-
- getRawPosition() - Method in class io.github.thunderbots.lightning.hardware.Motor
-
Gets the raw encoder position value of this motor.
- getRevolutions() - Method in class io.github.thunderbots.lightning.hardware.Motor.Encoder
-
Gets the current position of the encoder with respect to the zero point,
converted to revolutions of the motor.
- getRightStrafePower(Joystick) - Method in class io.github.thunderbots.lightning.control.layout.MecanumControlLayout
-
Gets the right strafe power that should be sent to the robot based on the current
state of the given joystick.
- getRobot() - Method in class io.github.thunderbots.lightning.opmode.SimpleOpMode
-
Get a reference to this op mode's robot.
- getRotateTicks() - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Gets the average value in raw ticks of the encoders for driving,
assuming the robot is rotating.
- getRotateTicks() - Method in class io.github.thunderbots.lightning.drive.MecanumDrive
-
- getRotationDegrees() - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Gets the degrees that the robot has rotated clockwise since the last encoder reset.
- getSensor(String) - Static method in class io.github.thunderbots.lightning.Lightning
-
Gets a reference to any sensor on the robot with the given name.
- getSensorMaps(HardwareMap) - Static method in class io.github.thunderbots.lightning.Lightning
-
Returns a list of DeviceMapping
s in the given HardwareMap
that could
contain sensors.
- getServo(String) - Static method in class io.github.thunderbots.lightning.Lightning
-
Gets a reference to the servo with the given name.
- getSide() - Method in enum io.github.thunderbots.lightning.utility.Alliance
-
Gets the integer side of the field.
- getSwingDegrees(boolean) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Gets the degrees that the robot has swung in the given direction since the last encoder reset.
- getSwingTicks(boolean) - Method in class io.github.thunderbots.lightning.drive.DriveSystem
-
Gets the average value in raw ticks of the encoders for driving,
assuming the robot is swinging.
- getSwingTicks(boolean) - Method in class io.github.thunderbots.lightning.drive.MecanumDrive
-
- getTaskScheduler() - Static method in class io.github.thunderbots.lightning.Lightning
-
Gets a reference to the main task scheduler.