You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
This class will extends the Command class. It needs to have a PIDController object, DummyPIDOutpyt object, and references to the DriveSubsystem and OI classes from the main Robot class.
It will take a double as a parameter for the angle the robot needs to turn.
In the initialize command, it needs to initialize the DummyPIDOuptut object, reset the gyro, and create the turnController.
In the execute command, create a while loop that will run while pid controller is not on target and while the stop button on the controller is pushed. In this loop, it will get the pid output and use this to set the speed of the drive subsystem. Then disable the pid controller and end the method by setting finished to true.
The end() and interrupted() methods need to stop the driveSubsystem.
Check the RobotExample repository for more help
The text was updated successfully, but these errors were encountered:
This class will extends the Command class. It needs to have a PIDController object, DummyPIDOutpyt object, and references to the DriveSubsystem and OI classes from the main Robot class.
It will take a double as a parameter for the angle the robot needs to turn.
In the initialize command, it needs to initialize the DummyPIDOuptut object, reset the gyro, and create the turnController.
In the execute command, create a while loop that will run while pid controller is not on target and while the stop button on the controller is pushed. In this loop, it will get the pid output and use this to set the speed of the drive subsystem. Then disable the pid controller and end the method by setting finished to true.
The end() and interrupted() methods need to stop the driveSubsystem.
Check the RobotExample repository for more help
The text was updated successfully, but these errors were encountered: