Go to Post If it's the loss of American lives that concerns the nation, why not campaign aggressively against smoking, or improve automobile safety? At least then, the benefits will be tangible, and substantially more significant to the well being of the locals. - Tristan Lall [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 06-02-2009, 06:32
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: 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);
       }
    }
};
this creates them as accessable inside all the functions in the class
__________________
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 21:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi