Class 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.
    • 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 Robot
      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)
      static void reportFramework​(java.lang.String framework_name)
      Report a custom framework via FRCNetComm
      static void reportFRCVersion​(java.lang.String language, java.lang.String version)
      Report a custom FRC Version
      static void reportLanguage​(java.lang.String language)
      Report a custom programming language via FRCNetComm
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RR_HAL

        public RR_HAL()
    • 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 language
        version - 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