Class RR_HAL
- java.lang.Object
-
- io.github.frc5024.lib5k.hardware.ni.roborio.fpga.RR_HAL
-
public class RR_HAL extends java.lang.Object
Tools for messing with the HAL in questionable ways. Do not touch this unless you understand the RoboRIO FPGA, the DriverStation protocol, and FRCNetComm.
-
-
Field Summary
Fields Modifier and Type Field Description static double
MAXIMUM_BUS_VOLTAGE
-
Constructor Summary
Constructors Constructor Description RR_HAL()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getLibraryVersion()
Get the Lib5K version (wpi version + Lib5K identifier + FRC year)static java.lang.String
getRobotName()
Returns the name of the robot if the name cannot be found, returns Unknown Robotstatic double
getSimSafeVoltage()
Get the robot voltage, but return 12.0v if the robot is running in simulation, and the "real" voltage is set to 0.0v (this solves allwpilib PR #2224)static void
reportFramework(java.lang.String framework_name)
Report a custom framework via FRCNetCommstatic void
reportFRCVersion(java.lang.String language, java.lang.String version)
Report a custom FRC Versionstatic void
reportLanguage(java.lang.String language)
Report a custom programming language via FRCNetComm
-
-
-
Field Detail
-
MAXIMUM_BUS_VOLTAGE
public static final double MAXIMUM_BUS_VOLTAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
reportLanguage
public static void reportLanguage(java.lang.String language)
Report a custom programming language via FRCNetComm- Parameters:
language
- Language name
-
reportFramework
public static void reportFramework(java.lang.String framework_name)
Report a custom framework via FRCNetComm- Parameters:
framework_name
- Framework name
-
getLibraryVersion
public static java.lang.String getLibraryVersion()
Get the Lib5K version (wpi version + Lib5K identifier + FRC year)- Returns:
- Lib5K version
-
reportFRCVersion
public static void reportFRCVersion(java.lang.String language, java.lang.String version)
Report a custom FRC Version- Parameters:
language
- Robot programming languageversion
- FRC version
-
getRobotName
public static java.lang.String getRobotName()
Returns the name of the robot if the name cannot be found, returns Unknown Robot- Returns:
- robot name
-
getSimSafeVoltage
public static double getSimSafeVoltage()
Get the robot voltage, but return 12.0v if the robot is running in simulation, and the "real" voltage is set to 0.0v (this solves allwpilib PR #2224)- Returns:
- Robot voltage
-
-