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