java.lang.Object
org.firstinspires.ftc.teamcode.fy23.roadrunner.util.LynxModuleUtil

public class LynxModuleUtil extends Object
Collection of utilites for interacting with Lynx modules.
  • Constructor Details

    • LynxModuleUtil

      public LynxModuleUtil()
  • Method Details

    • getFirmwareVersion

      public static LynxModuleUtil.LynxFirmwareVersion getFirmwareVersion(com.qualcomm.hardware.lynx.LynxModule module)
      Retrieve and parse Lynx module firmware version.
      Parameters:
      module - Lynx module
      Returns:
      parsed firmware version
    • ensureMinimumFirmwareVersion

      public static void ensureMinimumFirmwareVersion(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap)
      Ensure all of the Lynx modules attached to the robot satisfy the minimum requirement.
      Parameters:
      hardwareMap - hardware map containing Lynx modules