Package edu.wpi.first.hal.sim
Class DriverStationSim
- java.lang.Object
-
- edu.wpi.first.hal.sim.DriverStationSim
-
public class DriverStationSim extends Object
-
-
Constructor Summary
Constructors Constructor Description DriverStationSim()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAutonomous()booleangetDsAttached()booleangetEnabled()booleangetEStop()booleangetFmsAttached()booleangetTest()voidnotifyNewData()CallbackStoreregisterAutonomousCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterDsAttachedCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterEnabledCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterEStopCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterFmsAttachedCallback(NotifyCallback callback, boolean initialNotify)CallbackStoreregisterTestCallback(NotifyCallback callback, boolean initialNotify)voidresetData()voidsetAutonomous(boolean autonomous)voidsetDsAttached(boolean dsAttached)voidsetEnabled(boolean enabled)voidsetEStop(boolean eStop)voidsetFmsAttached(boolean fmsAttached)voidsetSendError(boolean shouldSend)Toggles suppression of DriverStation.reportError and reportWarning messages.voidsetTest(boolean test)
-
-
-
Method Detail
-
registerEnabledCallback
public CallbackStore registerEnabledCallback(NotifyCallback callback, boolean initialNotify)
-
getEnabled
public boolean getEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
registerAutonomousCallback
public CallbackStore registerAutonomousCallback(NotifyCallback callback, boolean initialNotify)
-
getAutonomous
public boolean getAutonomous()
-
setAutonomous
public void setAutonomous(boolean autonomous)
-
registerTestCallback
public CallbackStore registerTestCallback(NotifyCallback callback, boolean initialNotify)
-
getTest
public boolean getTest()
-
setTest
public void setTest(boolean test)
-
registerEStopCallback
public CallbackStore registerEStopCallback(NotifyCallback callback, boolean initialNotify)
-
getEStop
public boolean getEStop()
-
setEStop
public void setEStop(boolean eStop)
-
registerFmsAttachedCallback
public CallbackStore registerFmsAttachedCallback(NotifyCallback callback, boolean initialNotify)
-
getFmsAttached
public boolean getFmsAttached()
-
setFmsAttached
public void setFmsAttached(boolean fmsAttached)
-
registerDsAttachedCallback
public CallbackStore registerDsAttachedCallback(NotifyCallback callback, boolean initialNotify)
-
getDsAttached
public boolean getDsAttached()
-
setDsAttached
public void setDsAttached(boolean dsAttached)
-
notifyNewData
public void notifyNewData()
-
setSendError
public void setSendError(boolean shouldSend)
Toggles suppression of DriverStation.reportError and reportWarning messages.- Parameters:
shouldSend- If false then messages will will be suppressed.
-
resetData
public void resetData()
-
-