-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIDSubsystem's PIDController is ungrouped #260
Comments
Could bug 1 be #258? |
I'll add a Joystick and report. |
I do believe I uncovered the NullPointerException. Turns out Robotbuilder is creating the hardware in two steps and not as final. Looking at the sample code in FRC-Docs has the deceleration and assignment at the top of the class. RobotBuilder Declares the object in the class but assigns it in the class constructor. I wish I could find the conversation I had with one of you SOME TIME AGO about this move to a one step Declare and Assing from the two step where the assignment was in the constructor. At that time they agreed that the two step would be returned but is this wrong? |
bug 2 doesn't have to do with where the items are declared and initialized, but rather that the speed controller was being declared locally, which hid the member variable, so it was null when used in other methods. |
Previously, the PIDSubsystem's PID Controller would show as ungrouped in livewindow. This will fix wpilibsuite/RobotBuilder#260
Yes, It is related. The Object did get a button when the Joystick and button was added, But this was just a Smartdashboard copy of the Joystick operation. I did find a solution to the issue that robotbuilder does not respect the check box of the command if it is checked to add button to Smartdashboard. I will post these finding on that issue. |
I can confirm adding either one of these lines
to my PIDSubsystem class constructor does add the PIDControler to the subsystem, but the LiveWindow control still has no effect when the robot is in Test mode. Is this because I'm putting this in my Robots Subsystem but the Issue #2784 is adding it to the PIDSubsystem.Java? |
Previously, the PIDSubsystem's PID Controller would show as ungrouped in LiveWindow. Fixes wpilibsuite/RobotBuilder#260
How the PID Controller is grouped doesn't have anything to do with it running or not. I opened wpilibsuite/allwpilib#2792 for the PID Controller not running in test mode. |
Previously, the PIDSubsystem's PID Controller would show as ungrouped in LiveWindow. Fixes wpilibsuite/RobotBuilder#260
In PIDSubsystem, the PIDController is not added as a child of the subsystem.
The text was updated successfully, but these errors were encountered: