public class FtcEventLoopHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NO_VOLTAGE_SENSOR |
Constructor and Description |
---|
FtcEventLoopHandler(HardwareFactory hardwareFactory,
UpdateUI.Callback callback,
Context robotControllerContext) |
Modifier and Type | Method and Description |
---|---|
void |
displayGamePadInfo(java.lang.String activeOpModeName) |
Gamepad[] |
getGamepads() |
HardwareMap |
getHardwareMap() |
java.lang.String |
getOpMode(java.lang.String extra) |
void |
init(EventLoopManager eventLoopManager) |
void |
resetGamepads() |
void |
restartRobot() |
void |
sendBatteryInfo() |
void |
sendCommand(Command command) |
void |
sendTelemetry(java.lang.String tag,
java.lang.String msg) |
void |
sendTelemetryData(Telemetry telemetry) |
void |
shutdownCoreInterfaceDeviceModules() |
void |
shutdownLegacyModules() |
void |
shutdownMotorControllers() |
void |
shutdownServoControllers() |
void |
updateBatteryLevel(float percent) |
public static final java.lang.String NO_VOLTAGE_SENSOR
public FtcEventLoopHandler(HardwareFactory hardwareFactory, UpdateUI.Callback callback, Context robotControllerContext)
public void init(EventLoopManager eventLoopManager)
public HardwareMap getHardwareMap() throws RobotCoreException, java.lang.InterruptedException
RobotCoreException
java.lang.InterruptedException
public void displayGamePadInfo(java.lang.String activeOpModeName)
public Gamepad[] getGamepads()
public void resetGamepads()
public void sendTelemetryData(Telemetry telemetry)
public void sendBatteryInfo()
public void sendTelemetry(java.lang.String tag, java.lang.String msg)
public void shutdownMotorControllers()
public void shutdownServoControllers()
public void shutdownLegacyModules()
public void shutdownCoreInterfaceDeviceModules()
public void restartRobot()
public void sendCommand(Command command)
public java.lang.String getOpMode(java.lang.String extra)
public void updateBatteryLevel(float percent)