Skip to content

Update VendorDeps to work with firmware & remove unused libraries #7

Update VendorDeps to work with firmware & remove unused libraries

Update VendorDeps to work with firmware & remove unused libraries #7

Triggered via pull request November 2, 2023 17:07
Status Success
Total duration 1m 29s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
build: src/main/java/bhs/devilbotz/Constants.java#L10
[spotless] reported by reviewdog 🐶 Raw Output: src/main/java/bhs/devilbotz/Constants.java:10:- // How often to run a loop of the robot src/main/java/bhs/devilbotz/Constants.java:11:- // Default is 20ms (do not change unless you know what you're doing src/main/java/bhs/devilbotz/Constants.java:12:- public static final double loopPeriodSecs = 0.02; src/main/java/bhs/devilbotz/Constants.java:13:- // Tuning mode toggle src/main/java/bhs/devilbotz/Constants.java:14:- public static final boolean tuningMode = true; src/main/java/bhs/devilbotz/Constants.java:15:- // Which robot to use? src/main/java/bhs/devilbotz/Constants.java:16:- // Options: src/main/java/bhs/devilbotz/Constants.java:17:- // - ROBOT_2024S src/main/java/bhs/devilbotz/Constants.java:18:- // - ROBOT_2024SIM src/main/java/bhs/devilbotz/Constants.java:19:- private static final RobotType robot = RobotType.ROBOT_2024S; src/main/java/bhs/devilbotz/Constants.java:10:+ // How often to run a loop of the robot src/main/java/bhs/devilbotz/Constants.java:11:+ // Default is 20ms (do not change unless you know what you're doing src/main/java/bhs/devilbotz/Constants.java:12:+ public static final double loopPeriodSecs = 0.02; src/main/java/bhs/devilbotz/Constants.java:13:+ // Tuning mode toggle src/main/java/bhs/devilbotz/Constants.java:14:+ public static final boolean tuningMode = true; src/main/java/bhs/devilbotz/Constants.java:15:+ // Which robot to use? src/main/java/bhs/devilbotz/Constants.java:16:+ // Options: src/main/java/bhs/devilbotz/Constants.java:17:+ // - ROBOT_2024S src/main/java/bhs/devilbotz/Constants.java:18:+ // - ROBOT_2024SIM src/main/java/bhs/devilbotz/Constants.java:19:+ private static final RobotType robot = RobotType.ROBOT_2024S;
build: src/main/java/bhs/devilbotz/Constants.java#L21
[spotless] reported by reviewdog 🐶 Raw Output: src/main/java/bhs/devilbotz/Constants.java:21:- // Get the current robot src/main/java/bhs/devilbotz/Constants.java:22:- public static RobotType getRobot() { src/main/java/bhs/devilbotz/Constants.java:23:- if (RobotBase.isReal()) { src/main/java/bhs/devilbotz/Constants.java:24:- if (robot == RobotType.ROBOT_2024SIM) { // Invalid robot selected src/main/java/bhs/devilbotz/Constants.java:25:- return RobotType.ROBOT_2024S; src/main/java/bhs/devilbotz/Constants.java:26:- } else { src/main/java/bhs/devilbotz/Constants.java:27:- return robot; src/main/java/bhs/devilbotz/Constants.java:28:- } src/main/java/bhs/devilbotz/Constants.java:29:- } else { src/main/java/bhs/devilbotz/Constants.java:30:- return robot; src/main/java/bhs/devilbotz/Constants.java:31:- } src/main/java/bhs/devilbotz/Constants.java:21:+ // Get the current robot src/main/java/bhs/devilbotz/Constants.java:22:+ public static RobotType getRobot() { src/main/java/bhs/devilbotz/Constants.java:23:+ if (RobotBase.isReal()) { src/main/java/bhs/devilbotz/Constants.java:24:+ if (robot == RobotType.ROBOT_2024SIM) { // Invalid robot selected src/main/java/bhs/devilbotz/Constants.java:25:+ return RobotType.ROBOT_2024S; src/main/java/bhs/devilbotz/Constants.java:26:+ } else { src/main/java/bhs/devilbotz/Constants.java:27:+ return robot; src/main/java/bhs/devilbotz/Constants.java:28:+ } src/main/java/bhs/devilbotz/Constants.java:29:+ } else { src/main/java/bhs/devilbotz/Constants.java:30:+ return robot;
build: src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java#L86
[spotless] reported by reviewdog 🐶 Raw Output: src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:86:- src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:87:- // Burn the Spark MAXs depending on their status src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:88:- if (SparkMAXBurnManager.shouldBurn()) { src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:89:- driveSparkMax.restoreFactoryDefaults(); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:90:- turnSparkMax.restoreFactoryDefaults(); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:91:- } src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:92:- src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:93:- // Invert the turn falcon src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:94:- turnSparkMax.setInverted(isTurnMotorInverted); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:95:- src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:96:- // Set the current limit to 30 amps src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:97:- driveSparkMax.setSmartCurrentLimit(30); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:98:- turnSparkMax.setSmartCurrentLimit(30); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:99:- // Enable voltage compensation src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:100:- driveSparkMax.enableVoltageCompensation(12.0); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:101:- turnSparkMax.enableVoltageCompensation(12.0); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:102:- src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:103:- // Assign the encoders src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:104:- driveDerivedVelocityController = src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:105:- new SparkMaxDerivedVelocityController(driveSparkMax); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:106:- driveDefaultEncoder = driveSparkMax.getEncoder(); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:107:- turnRelativeEncoder = turnSparkMax.getEncoder(); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:108:- turnRelativeEncoder.setPosition(0.0); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:109:- src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:110:- driveSparkMax.setCANTimeout(0); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:111:- turnSparkMax.setCANTimeout(0); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:112:- src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:113:- // Burn the spark maxes if necessary src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:114:- if (SparkMAXBurnManager.shouldBurn()) { src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:115:- driveSparkMax.burnFlash(); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:116:- turnSparkMax.burnFlash(); src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:117:- } src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:118:- } src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:119:- src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:120:- /** src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:121:- * Update the AK hardware inputs src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:122:- * src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:123:- * @param inputs the inputs to update src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:124:- */ src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:125:- @OverRide src/main/java/bhs/devilbotz/subsystems/ModuleIOSparkMAX.java:126:- public void updateInputs(ModuleIOInputs inputs) { src/main/java/b