Open blu28 opened 1 year ago
Describe the bug If you instantiate a powerDistribution object (which implements Sendable) with a physical CTRE PDP and then use Smartdashboard.putData to put it on the dashboard you get this stack trace:
CAN: Message not found", frc.robot.Main.main(Main.java:23) edu.wpi.first.hal.PowerDistributionJNI.getTotalCurrent(Native Method) edu.wpi.first.wpilibj.PowerDistribution.lambda$initSendable$2(PowerDistribution.java:211) edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl.lambda$addDoubleProperty$6(SendableBuilderImpl.java:398) edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl$Property.update(SendableBuilderImpl.java:88) edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl.update(SendableBuilderImpl.java:180) edu.wpi.first.wpilibj.shuffleboard.ComplexWidget.buildInto(ComplexWidget.java:33) edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout.buildInto(ShuffleboardLayout.java:132) edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab.buildInto(ShuffleboardTab.java:145) edu.wpi.first.wpilibj.shuffleboard.ShuffleboardInstance.update(ShuffleboardInstance.java:59) edu.wpi.first.wpilibj.shuffleboard.Shuffleboard.update(Shuffleboard.java:67) edu.wpi.first.wpilibj.IterativeRobotBase.loopFunc(IterativeRobotBase.java:363) edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:130) edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:349) edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:442) frc.robot.Main.main(Main.java:23)
To Reproduce
Expected behavior You get a widget on the dashboard with the PDP data.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
What is the firmware version of the PDP?
1.40.
This shouldn't be an exception, just a warning w/ stacktrace in the DS console
Describe the bug If you instantiate a powerDistribution object (which implements Sendable) with a physical CTRE PDP and then use Smartdashboard.putData to put it on the dashboard you get this stack trace:
CAN: Message not found", frc.robot.Main.main(Main.java:23) edu.wpi.first.hal.PowerDistributionJNI.getTotalCurrent(Native Method) edu.wpi.first.wpilibj.PowerDistribution.lambda$initSendable$2(PowerDistribution.java:211) edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl.lambda$addDoubleProperty$6(SendableBuilderImpl.java:398) edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl$Property.update(SendableBuilderImpl.java:88) edu.wpi.first.wpilibj.smartdashboard.SendableBuilderImpl.update(SendableBuilderImpl.java:180) edu.wpi.first.wpilibj.shuffleboard.ComplexWidget.buildInto(ComplexWidget.java:33) edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout.buildInto(ShuffleboardLayout.java:132) edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab.buildInto(ShuffleboardTab.java:145) edu.wpi.first.wpilibj.shuffleboard.ShuffleboardInstance.update(ShuffleboardInstance.java:59) edu.wpi.first.wpilibj.shuffleboard.Shuffleboard.update(Shuffleboard.java:67) edu.wpi.first.wpilibj.IterativeRobotBase.loopFunc(IterativeRobotBase.java:363) edu.wpi.first.wpilibj.TimedRobot.startCompetition(TimedRobot.java:130) edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:349) edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:442) frc.robot.Main.main(Main.java:23)
To Reproduce
Expected behavior You get a widget on the dashboard with the PDP data.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):