View Single Post
  #1   Spotlight this post!  
Unread 23-04-2016, 21:40
Dpurry23's Avatar
Dpurry23 Dpurry23 is offline
Programmer/Control System/Scout
AKA: Darian Purry
FRC #0207 (Metalcrafters)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2012
Location: Hawthorne
Posts: 13
Dpurry23 is an unknown quantity at this point
Exclamation Using PID in autonomous to keep straight

Need help figuring out how to use PID to go over an obstacle turn to a certain point. (ex. The position that the robot calibrates at)

This is the code I have so far.
Code:
myRobot.SetSafetyEnabled(false);

myRobot.Drive(-.5,0.0);
Wait(1.5);
myRobot.Drive(0.0, 0.0);
turnController->SetSetpoint(0.0f);
Wait(2.0); // Have to wait till the bot turns
Language is C++
Reply With Quote