|
Re: Help with C robot example
Quote:
Originally Posted by theprgramerdude
I.E I would initialize two jaguars, jag1 = new CJaguar(port) or something like that, jag2...
CAutonomous(){
jag1.set(power);
jag2.set(power);
Wait(5);
}
The autonomous method is automatically called by the system, and it'll run your commands. In this case, it'll set each jaguar to the power level, and drive for 5 seconds while the user program waits to resume.
|
You drive forward for 5 seconds.
When do you stop?
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|