generated from DeepBlueRobotics/EmptyProject2024
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
I am unable to simulate this at all - odometry seems to be broken for some reason?
Can others vouch for the code being able to work?
Error at org.carlmontrobotics.subsystems.Drivetrain.getPose(Drivetrain.java:538): Unhandled exception: java.lang.NullPointerException: Cannot invoke "edu.wpi.first.math.kinematics.SwerveDriveOdometry.getPoseMeters()" because "this.odometry" is null
at org.carlmontrobotics.subsystems.Drivetrain.getPose(Drivetrain.java:538)
at org.carlmontrobotics.subsystems.Drivetrain.lambda$initSendable$4(Drivetrain.java:333)
at edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl.lambda$addDoubleProperty$6(SendableBuilderImpl.java:430)
at edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl$Property.update(SendableBuilderImpl.java:90)
at edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl.update(SendableBuilderImpl.java:185)
at edu.wpi.first.util.sendable.SendableRegistry.publish(SendableRegistry.java:474)
at edu.wpi.first.wpilibj.smartdashboard.SmartDashboard.putData(SmartDashboard.java:79)
at edu.wpi.first.wpilibj.smartdashboard.SmartDashboard.putData(SmartDashboard.java:96)
at org.carlmontrobotics.subsystems.Drivetrain.<init>(Drivetrain.java:211)
at org.carlmontrobotics.RobotContainer.<init>(RobotContainer.java:77)
at org.carlmontrobotics.Robot.robotInit(Robot.java:27)
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:840)
Originally posted by @FriedLongJohns in #79 (review)
Metadata
Metadata
Assignees
Labels
No labels