Class REVPHVersion

java.lang.Object
edu.wpi.first.hal.REVPHVersion

public class REVPHVersion extends Object
Version and device data received from a REV PH.
  • Field Details

    • firmwareMajor

      public final int firmwareMajor
      The firmware major version.
    • firmwareMinor

      public final int firmwareMinor
      The firmware minor version.
    • firmwareFix

      public final int firmwareFix
      The firmware fix version.
    • hardwareMinor

      public final int hardwareMinor
      The hardware minor version.
    • hardwareMajor

      public final int hardwareMajor
      The hardware major version.
    • uniqueId

      public final int uniqueId
      The device's unique ID.
  • Constructor Details

    • REVPHVersion

      public REVPHVersion(int firmwareMajor, int firmwareMinor, int firmwareFix, int hardwareMinor, int hardwareMajor, int uniqueId)
      Constructs a revph version (Called from the HAL).
      Parameters:
      firmwareMajor - firmware major
      firmwareMinor - firmware minor
      firmwareFix - firmware fix
      hardwareMinor - hardware minor
      hardwareMajor - hardware major
      uniqueId - unique id