Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   HELP programming noobs here. (http://www.chiefdelphi.com/forums/showthread.php?t=82598)

Twisted eric 13-02-2010 15:30

HELP programming noobs here.
 
We get a message saying

No user-supplied robotMain( )

and

we get "task 0xe62240 (tl) deleted: errno=1835009 (0xlc0001) status=1 (0x1)"

We decided to switch programming languages to JAVA and don't know whats going on.

We are also not getting the top half of our driver station window to appear.

any and all help will be appreciated

Much Thanks.
Team 581

Twisted eric 13-02-2010 16:13

Re: HELP programming noobs here.
 
This is our code


package edu.wpi.first.wpilibj.templates;


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

public class Team581Robot
extends SimpleRobot {

RobotDrive drive = new RobotDrive(1,2);
Joystick leftstick = new Joystick(1);
Joystick rightstick = new Joystick(2);
Joystick kickerstick = new Joystick (3);



public void autonomous(){
for (int i = 0; i <4; i++){
drive.drive(0.5, 0.0); //drive 50% fwd 0% turn
Timer.delay(2.0); //wait 2 seconds
drive.drive(0.0, 0.25);
drive.drive(0.5, .0); //drive 50% fwd 0% turn
Timer.delay(1.0); //wait 1 seconds
drive.drive(0.0, 0.75); //drive 0% fwd 75% turn
drive.drive(0.0, 0.25); //drive 0% fwd 25% turn
drive.drive(0.5, 0.0); //drive 50% fwd 0% turn
Timer.delay(1.0); //wait 1 second
drive.drive(0.0, 0.75);

}
drive.drive(0.0, 0.0); //drive 0% fwd, 0% turn
}

public void operatorControl() {
while (true && isOperatorControl() && isEnabled()) //loop until change
{
drive.tankDrive(leftstick, rightstick); //drive with joysticks
Timer.delay(0.005);
}

}
}

nighterfighter 13-02-2010 16:48

Re: HELP programming noobs here.
 
You said you switched to Java-

Did you update the cRIO for Java?

Twisted eric 13-02-2010 16:55

Re: HELP programming noobs here.
 
yes we switched to java when imaging the Crio.

Robototes2412 13-02-2010 16:59

Re: HELP programming noobs here.
 
The noRobotMain thing is normal, enable the robot to make it drive. as for the other error, try reformatting your cRio

Twisted eric 13-02-2010 17:12

Re: HELP programming noobs here.
 
we got it working our mentor actually showed up and help now we just need to get teleoperated working and we will be ready.


All times are GMT -5. The time now is 01:54.

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