|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Pointers and Tank Drive?
Hi! I am trying to program a Tank drive and am using the programming guide for C++ as well as the Simple Template found in File - New - Example etc... in the Workbench.
In the programming guide, the Operator control code looks like this void OperatorContol (void) { while (1) { drivetrain.Tank (&stick1, &stick2); } } and well, the header included in the program is "WPILib.h"; I have the same header included and I have the variables defined exactly the way they are defined in the guide, but when I try to build the project, it states the following :C:/WindRiver/workspace/SimpleTemplate/MyRobot.cpp:31: error: `stick1' undeclared (first use this function): How do pointers work?? In the guide, the joystick and pointer explanation is omitted *at least in the one I have, sorry if i skipped something*. So, is there anything I can read about pointers?? Or programming tank drive? Because I can't figure out whats wrong! *and yes, I am sorta kinda new to this, so if I made a silly error or am asking something stupid, sorry* Thank you!!!!!!!!! ![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| omni drive vs tank | |20807 61|2|_ | Technical Discussion | 49 | 17-01-2006 13:54 |
| Tank Drive help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | Idaman323 | Programming | 3 | 18-02-2005 15:17 |
| Tank Drive | Idaman323 | Programming | 14 | 15-02-2005 09:01 |
| Swerve/crab drive and tank turning | activemx | Technical Discussion | 9 | 23-02-2004 18:26 |
| tank drive | Stormhammer | Programming | 11 | 29-01-2004 23:08 |