View Single Post
  #15   Spotlight this post!  
Unread 16-01-2009, 08:56
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: need help understanding c code in robotdrive

Code:
Joystick stick1(1);
//Declare Variable "stick1" of type "Joystick" on 
//Driverstation Port 1 "(1)"
RobotDrive rd(1,2);
//create variable "rd" of type "RobotDrive" (which controls 2
//or 4 pwm's for a base) with 2 pwm's on pwm ports 1 and 2 "(1,2)"
at the top
and
Code:
rd.ArcadeDrive(stick1);
//Arcade drives (one joystick) the RobotBase rd with
//the paramaters for speed and turn in Joystick stick1
in the telop while loop
Got it?
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote