- getAmbient() - Method in class ShefRobot.ColorSensor
-
Returns a value representative of the light intensity detected.
- getAngle() - Method in class ShefRobot.GyroSensor
-
Measures the orientation of the sensor in respect to its start orientation.
- getButtons() - Method in class ShefRobot.Robot
-
Get a Buttons object
You can use Buttons for creating ButtonListeners and waiting for ButtonPresses
- getColor() - Method in class ShefRobot.ColorSensor
-
- getColorSensor(Sensor.Port) - Method in class ShefRobot.Robot
-
Get a ColorSensor object attached to the specified port.
- getDistance() - Method in class ShefRobot.UltrasonicSensor
-
Returns the distance detected by the sensor in metres
When in distance mode, the Ultrasonic sensors light will be solid and it will continuously emit pings
Values outside of the approximate range ~0.03-1.7m are returned as Float.POSITIVE_INFINITY
- getFloodlightState() - Method in class ShefRobot.ColorSensor
-
Reads the current state of the floodlight
- getGyroSensor(Sensor.Port) - Method in class ShefRobot.Robot
-
Get a GyroSensor object attached to the specified port.
- getLargeMotor(Motor.Port) - Method in class ShefRobot.Robot
-
Get a Motor object attached to the specified port.
- getMaxSpeed() - Method in class ShefRobot.Motor
-
Returns the maximum speed, this value is based off the Robots battery voltage (it decreases as the Robots battery drains).
- getMediumMotor(Motor.Port) - Method in class ShefRobot.Robot
-
Get a Motor object attached to the specified port.
- getRate() - Method in class ShefRobot.GyroSensor
-
Measures angular velocity of the sensor.
- getRateAndAngle() - Method in class ShefRobot.GyroSensor
-
Measures orientation and angular velocity of the sensor.
- getRawSample() - Method in class ShefRobot.Sensor
-
Get a value from the Sensor.
- getRed() - Method in class ShefRobot.ColorSensor
-
Returns the level of red reflected into the sensor
If not already in red mode, this will switch the sensor into red mode (enabling the red light).
- getRGB() - Method in class ShefRobot.ColorSensor
-
Returns the colour detected by the sensor
~untested~
- getSpeaker() - Method in class ShefRobot.Robot
-
Get a Speaker object
You can use a Speaker for playing tones through the Robot
- getSpeed() - Method in class ShefRobot.Motor
-
Returns the speed of the Motor
- getTachoCount() - Method in class ShefRobot.Motor
-
- getTouchSensor(Sensor.Port) - Method in class ShefRobot.Robot
-
Get an TouchSensor object attached to the specified port.
- getUltrasonicSensor(Sensor.Port) - Method in class ShefRobot.Robot
-
Get an UltrasonicSensor object attached to the specified port.
- getValue() - Method in class ShefRobot.util.Pair
-
- getVolume() - Method in class ShefRobot.Speaker
-
Returns the current volume of the robots speaker
- GyroSensor - Class in ShefRobot
-
This class represents an EV3 GyroSensor which can detect its angle and the rate of change
Each EV3 should contain 1 gyro sensor
If the sensor seems insensitive, please check that the EV3s battery is charged.
- valueOf(String) - Static method in enum ShefRobot.Buttons.Button
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ShefRobot.ColorSensor.Color
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ShefRobot.ColorSensor.FloodlightState
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ShefRobot.ColorSensor.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ShefRobot.Motor.Port
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ShefRobot.Sensor.Port
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ShefRobot.TouchSensor.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ShefRobot.UltrasonicSensor.Mode
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum ShefRobot.Buttons.Button
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ShefRobot.ColorSensor.Color
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ShefRobot.ColorSensor.FloodlightState
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ShefRobot.ColorSensor.Mode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ShefRobot.Motor.Port
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ShefRobot.Sensor.Port
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ShefRobot.TouchSensor.Mode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ShefRobot.UltrasonicSensor.Mode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VOLUME_MAX - Static variable in class ShefRobot.Speaker
-
- VOLUME_MIN - Static variable in class ShefRobot.Speaker
-