Package com.ctre.phoenixpro
Class Utils
java.lang.Object
com.ctre.phoenixpro.Utils
@Deprecated(forRemoval=true) public class Utils extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Classes in the phoenixpro package will be removed in 2024.
Users should instead use classes from the phoenix6 package.
-
Constructor Summary
Constructors Constructor Description Utils()
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and Type Method Description static double
getCurrentTimeSeconds()
Deprecated, for removal: This API element is subject to removal in a future version.Get the current timestamp in seconds.static boolean
isSimulation()
Deprecated, for removal: This API element is subject to removal in a future version.Get whether the program is running in simulation.
-
Constructor Details
-
Method Details
-
getCurrentTimeSeconds
Deprecated, for removal: This API element is subject to removal in a future version.Get the current timestamp in seconds.This will return the current time in seconds, this is the same time that is used in
Timestamp
- Returns:
- Current time in seconds.
-
isSimulation
Deprecated, for removal: This API element is subject to removal in a future version.Get whether the program is running in simulation.- Returns:
true
if in simulation
-