Go to Post ...if you say "AndyMark" three times we show up... - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #1   Spotlight this post!  
Unread 23-01-2010, 12:05
greekgod8591 greekgod8591 is offline
Registered User
FRC #2577
 
Join Date: Feb 2009
Location: New Jersey
Posts: 7
greekgod8591 is an unknown quantity at this point
<indentifier> expected error

Hey,
Our team is using our robot from last year and trying to test out and get ourselves a taste of the java. We are just trying to make a SimpleRobot and we can't get past this error.

C:\Users\Alex\Documents\NetBeansProjects\TestProje ct\src\edu\wpi\first\wpilibj\templates\2577_V1.jav a:21: <identifier> expected
public class 2577_V1 extends SimpleRobot {

our code:

import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;

public class 2577_V1 extends SimpleRobot {

RobotDrive rDrive = new RobotDrive(1,2,3,4);
Joystick lStick = new Joystick(1);
Joystick rStick = new Joystick(2);

public void autonomous() {

}

public void operatorControl() {



while(true && isEnabled() && isOperatorControl()) {
rDrive.tankDrive(lStick, rStick);
}

}
}

any help would be much appreciated!
Reply With Quote
 


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
Gyro Repeatability, Expected Drift ? de_ Programming 31 14-03-2008 15:50
pic: Not what you expected VanMan Extra Discussion 17 05-03-2007 19:34
More flipping then expected cyberknights195 General Forum 6 07-03-2004 15:52
So rookies- was the season what you expected? Wayne C. General Forum 10 07-04-2003 20:02


All times are GMT -5. The time now is 09:45.

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