public class FtcEventLoopIdle extends FtcEventLoopBase
FtcEventLoopIdle
is an eventloop that runs whenever a full FtcEventLoop
is inappropriate.
This event loop should be robust in the face of errors and exceptions, staying up until
it's explicitly shut down.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
activityContext, firmwareUpdateInProgress, ftcEventLoopHandler, networkConnectionHandler, registeredOpModes, robotCfgFileMgr, runningOnDriverStation, usbScanManager, userOpmodeRegister
Constructor and Description |
---|
FtcEventLoopIdle(HardwareFactory hardwareFactory,
OpModeRegister userOpmodeRegister,
UpdateUI.Callback callback,
Activity activityContext) |
Modifier and Type | Method and Description |
---|---|
OpModeManagerImpl |
getOpModeManager() |
void |
handleUsbModuleAttach(RobotUsbModule module) |
void |
handleUsbModuleDetach(RobotUsbModule module) |
void |
init(EventLoopManager eventLoopManager) |
void |
loop() |
void |
onUsbDeviceAttached(UsbDevice usbDevice) |
void |
pendUsbDeviceAttachment(SerialNumber serialNumber,
long time,
java.util.concurrent.TimeUnit unit) |
void |
processedRecentlyAttachedUsbDevices() |
void |
refreshUserTelemetry(TelemetryMessage telemetry,
double sInterval) |
void |
requestOpModeStop(OpMode opModeToStopIfActive) |
void |
teardown() |
checkForChangedOpModes, enterFirmwareUpdateMode, getLynxUsbDeviceForFirmwareUpdate, getUSBAccessibleLynxDevices, handleCommandActivateConfiguration, handleCommandClearRememberedGroups, handleCommandDeleteConfiguration, handleCommandDisconnectWifiDirect, handleCommandDiscoverLynxModules, handleCommandDismissAllDialogs, handleCommandDismissDialog, handleCommandDismissProgress, handleCommandGetCandidateLynxFirmwareImages, handleCommandGetUSBAccessibleLynxModules, handleCommandLynxChangeModuleAddresses, handleCommandLynxFirmwareUpdate, handleCommandRequestAboutInfo, handleCommandRequestConfigurations, handleCommandRequestConfigurationTemplates, handleCommandRequestInspectionReport, handleCommandRequestParticularConfiguration, handleCommandRequestRememberedGroups, handleCommandRestartRobot, handleCommandSaveConfiguration, handleCommandScan, handleCommandShowDialog, handleCommandShowProgress, handleCommandShowToast, handleCommandStartDriverStationProgramAndManage, handleCommandVisuallyConfirmWifiBandSwitch, handleCommandVisuallyConfirmWifiReset, handleCommandVisuallyIdentify, processCommand, sendUIState, startUsbScanMangerIfNecessary, talkToParentLynxModule, updateFirmwareOnce, updateLynxFirmware
public static final java.lang.String TAG
public FtcEventLoopIdle(HardwareFactory hardwareFactory, OpModeRegister userOpmodeRegister, UpdateUI.Callback callback, Activity activityContext)
public void init(EventLoopManager eventLoopManager) throws RobotCoreException, java.lang.InterruptedException
init
in class FtcEventLoopBase
RobotCoreException
java.lang.InterruptedException
public void loop() throws RobotCoreException, java.lang.InterruptedException
RobotCoreException
java.lang.InterruptedException
public void refreshUserTelemetry(TelemetryMessage telemetry, double sInterval)
public void teardown() throws RobotCoreException, java.lang.InterruptedException
teardown
in class FtcEventLoopBase
RobotCoreException
java.lang.InterruptedException
public void pendUsbDeviceAttachment(SerialNumber serialNumber, long time, java.util.concurrent.TimeUnit unit)
public void onUsbDeviceAttached(UsbDevice usbDevice)
public void processedRecentlyAttachedUsbDevices() throws RobotCoreException, java.lang.InterruptedException
RobotCoreException
java.lang.InterruptedException
public void handleUsbModuleDetach(RobotUsbModule module) throws RobotCoreException, java.lang.InterruptedException
RobotCoreException
java.lang.InterruptedException
public void handleUsbModuleAttach(RobotUsbModule module) throws RobotCoreException, java.lang.InterruptedException
RobotCoreException
java.lang.InterruptedException
public OpModeManagerImpl getOpModeManager()
public void requestOpModeStop(OpMode opModeToStopIfActive)