|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
||||
|
||||
|
Re: Autonomous Issues!
yes, try this
Code:
#include "WPILib.h"
class RobotDemo:public SimpleRobot
{
RobotDrive myRobot;
Joystick stick;
public:
RobotDemo():
myRobot(1,3), stick(1){}
void Autonomous()
{
myRobot.Drive(1,0);
Wait(1);
myRobot.Drive(0);
}
void OperatorControl()
{
while (IsOperatorControl(){
myRobot.ArcadeDrive(stick);
}
}
};
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Autonomous questions (Labview) and some general issues | Daniel_H | NI LabVIEW | 15 | 08-01-2009 21:07 |
| VICTOR ISSUES | merybar | Electrical | 12 | 15-02-2008 18:47 |
| Newer issues.... | etdeshon | Programming | 4 | 26-01-2008 07:56 |
| Fundraising Issues... | IraJason | Fundraising | 32 | 04-09-2006 16:03 |
| Weight Issues | KathieK | General Forum | 1 | 05-11-2004 18:03 |