Class TimerWpiAdapter
java.lang.Object
xbot.common.controls.sensors.wpi_adapters.TimerWpiAdapter
- All Implemented Interfaces:
XSettableTimerImpl,XTimerImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadvanceTimeInSecondsBy(double time) Advance the timervoiddelay(double seconds) doubledoublevoidsetTimeInSeconds(double time) Set the current time
-
Constructor Details
-
TimerWpiAdapter
@Inject public TimerWpiAdapter()
-
-
Method Details
-
getFPGATimestamp
public double getFPGATimestamp()- Specified by:
getFPGATimestampin interfaceXTimerImpl
-
getMatchTime
public double getMatchTime()- Specified by:
getMatchTimein interfaceXTimerImpl
-
delay
public void delay(double seconds) - Specified by:
delayin interfaceXTimerImpl
-
setTimeInSeconds
public void setTimeInSeconds(double time) Description copied from interface:XSettableTimerImplSet the current time- Specified by:
setTimeInSecondsin interfaceXSettableTimerImpl- Parameters:
time- The current time in seconds
-
advanceTimeInSecondsBy
public void advanceTimeInSecondsBy(double time) Description copied from interface:XSettableTimerImplAdvance the timer- Specified by:
advanceTimeInSecondsByin interfaceXSettableTimerImpl- Parameters:
time- Duration in seconds to advance by
-