Class LynxModuleUtil
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.roadrunner.util.LynxModuleUtil
Collection of utilites for interacting with Lynx modules.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Parsed representation of a Lynx module firmware version.static class
Exception indicating an outdated Lynx firmware version. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
ensureMinimumFirmwareVersion
(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap) Ensure all of the Lynx modules attached to the robot satisfy the minimum requirement.getFirmwareVersion
(com.qualcomm.hardware.lynx.LynxModule module) Retrieve and parse Lynx module firmware version.
-
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
-