rwodonnell
24-03-2016, 09:19
Does anyone have some sample code that turns to a specified angle, implemented as a command? We have done it in Robot.java (https://github.com/BHSRobotix/BenchtopForShowbot/blob/master/BenchtopForShowbot/src/org/usfirst/frc/team2876/robot/Robot.java) but our first attempt to do it as a command (https://github.com/BHSRobotix/Stronghold2016/blob/master/src/org/usfirst/frc2876/Stronghold2016/commands/AutoDriveTurn.java) did not seem to work. Specifically, it was not possible to drive afterward - it just continued to want to face in the direction we gave it. My assumption is that the command is not really ending, or somehow the PID is still actively trying to correct the angle, but at this point I think I am too tired to help the students debug any further! Links are to different github projects if you care to see the code.