Coder Social home page Coder Social logo

crescendo2024's People

Contributors

darshiyer1 avatar eddiert1239 avatar iamawesomecat avatar jamesdooley4 avatar jbko6 avatar jetblackdragon avatar kangarookoala avatar kirbt avatar sjjcoding avatar smkettle avatar stewluj avatar takbs2412 avatar yumnah2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

crescendo2024's Issues

Commands missing meaningful names

I was looking at lots trying to diagnose an issue with the launcher being unexpectedly told to quickly slow down (causing a temperature spike), but can't tell which commands are being run since several use the same generic names "RunCommand" and "ParallelRaceGroup". This should be simply fixable by appending .withName(), such as:

driveController.rightStick().onTrue(new InstantCommand(s.drivebaseSubsystem::toggleXWheels).withName("ToggleXWheels"));

or

Commands.race(new RumbleCommand(controls), new WaitCommand(1)).withName("SetAngleLaunchCompletedRumble").schedule();

image

Update REVLib to 2024.2.4

Notably, this fixes the crash bug reported here (also posted in teams).

(We didn't encounter this bug because we avoided updating to the buggy version previously).

Null pointer exceptions are thrown when any of drivebase, intake, or launcher subsystems are disabled

Probably low priority, since (hopefully) we won't have to run in competition with subsystems disabled.

Sample intake disabled stacktrace:

Error at java.base/java.util.Objects.requireNonNull(Objects.java:233): Unhandled exception: java.lang.NullPointerException: Parameter requirement in method addRequirements was null when it should not have been!  Check the stacktrace to find the responsible line of code - usually, it is the first line of user-written code indicated in the stacktrace.  Make sure all objects passed to the method in question were properly initialized - note that this may not be obvious if it is being called under dynamically-changing conditions!  Please do not seek additional technical assistance without doing this first!
        at java.base/java.util.Objects.requireNonNull(Objects.java:233)
        at edu.wpi.first.util.ErrorMessages.requireNonNullParam(ErrorMessages.java:27)
        at edu.wpi.first.wpilibj2.command.Command.addRequirements(Command.java:92)
        at frc.team2412.robot.commands.intake.IntakeStopCommand.<init>(IntakeStopCommand.java:11)
        at frc.team2412.robot.util.AutoLogic.registerCommands(AutoLogic.java:54)
        at frc.team2412.robot.util.AutoLogic.<init>(AutoLogic.java:46)
        at frc.team2412.robot.Robot.robotInit(Robot.java:86)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
        at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:433)
        at java.base/java.lang.Thread.run(Thread.java:833)

Sample launcher disabled stacktrace:

Error at java.base/java.util.Objects.requireNonNull(Objects.java:233): Unhandled exception: java.lang.NullPointerException: Parameter requirement in method addRequirements was null when it should not have been!  Check the stacktrace to find the responsible line of code - usually, it is the first line of user-written code indicated in the stacktrace.  Make sure all objects passed to the method in question were properly initialized - note that this may not be obvious if it is being called under dynamically-changing conditions!  Please do not seek additional technical assistance without doing this first!
        at java.base/java.util.Objects.requireNonNull(Objects.java:233)
        at edu.wpi.first.util.ErrorMessages.requireNonNullParam(ErrorMessages.java:27)
        at edu.wpi.first.wpilibj2.command.Command.addRequirements(Command.java:92)
        at frc.team2412.robot.commands.launcher.FullTargetCommand.<init>(FullTargetCommand.java:43)
        at frc.team2412.robot.util.AutoLogic.registerCommands(AutoLogic.java:59)
        at frc.team2412.robot.util.AutoLogic.<init>(AutoLogic.java:46)
        at frc.team2412.robot.Robot.robotInit(Robot.java:86)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
        at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:433)
        at java.base/java.lang.Thread.run(Thread.java:833)

Sample drivebase disabled stacktrace:

Error at frc.team2412.robot.commands.launcher.FullTargetCommand.<init>(FullTargetCommand.java:41): Unhandled exception: java.lang.NullPointerException: Cannot invoke "frc.team2412.robot.subsystems.DrivebaseSubsystem.rotateToAngle(java.util.function.Supplier, boolean)" because "drivebaseSubsystem" is null
        at frc.team2412.robot.commands.launcher.FullTargetCommand.<init>(FullTargetCommand.java:41)
        at frc.team2412.robot.util.AutoLogic.registerCommands(AutoLogic.java:59)
        at frc.team2412.robot.util.AutoLogic.<init>(AutoLogic.java:46)
        at frc.team2412.robot.Robot.robotInit(Robot.java:86)
        at edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:107)
        at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:365)
        at edu.wpi.first.wpilibj.RobotBase.lambda$startRobot$0(RobotBase.java:433)
        at java.base/java.lang.Thread.run(Thread.java:833)

LauncherSubsystem null error

When LauncherSubsystem is enabled and run in simulation a null error results

Error at frc.team2412.robot.subsystems.LauncherSubsystem.getAngle(LauncherSubsystem.java:119): Unhandled exception: java.lang.NullPointerException: Cannot invoke "com.revrobotics.SparkAbsoluteEncoder.getPosition()" because "this.launcherAngleEncoder" is null

The issue is in line 50 of LauncherSubsystem .add("Launcher angle", getAngle())
The encoder is not yet initialized when getAngle() is called

Notes sometimes self-launch

During drive practice this week, sometimes notes held in the launcher will spontaneously launch out of the robot. It seems to happen more frequently with non-orange notes, but also happens with orange notes. Mech is looking for a 2nd feeder sensor to wire to another DIO port, but it'd be good to also look into code changes to make feeder/launcher tolerate the sensor losing note detection for a "brief" time once a note is being held.

Manual launcher angle control keeps moving after codriver stick is centered

MathUtil.applyDeadband(codriveController.getLeftY(), 0.1)
with
launcherSubsystem.setAngleSpeed(launcherAngleSpeed.getAsDouble());
should cause the launcher to slowly move up or down whenever the codriver stick moves the launcher up or down and then lets go, the launcher will keep slowly moving in whatever direction the stick previously moved.

Update to WPILib 2024.3.1

Include yet more network tables performance improvements with Shuffleboard (among many other things)

Remove unused ChoreoLib vendordep

We've seen ChoreoLib breaking builds on school laptops because it is hosted on github.io, which the school district blocks. Since we're not using it anywhere it's best to delete it.

Selected auto path keeps running after match starts

@jbko6 - looking at the wpilog logs from E9 match at Glacier Peak, I noticed the "NT\Shuffleboard\Match\Selected auto\Robot" values keep cycling even after the match started. Can you see how to stop those once the robot is enabled, to save some CPU time and memory on the Rio?

Enable On-Robot telemetry logging

This is used to log all data sent over Networktables for future analysis. During competition, we'll routinely copy the log files from the robot and upload them to Teams. Here's a link to the logs from Worlds last year (the log files this issue is referring to end in WPILOG, and can be opened with AdvantageScope).

Example from last year
WPILib docs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.