Go to Post Don't ever give up on your robot, especially this early in the season. That robot is what you make of it. If you give it your all, something good is bound to come your way. - Amanda Morrison [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2010, 15:30
Twisted eric's Avatar
Twisted eric Twisted eric is offline
Registered User
FRC #0581
 
Join Date: Jan 2010
Location: San Jose
Posts: 54
Twisted eric is an unknown quantity at this point
Exclamation 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
  #2   Spotlight this post!  
Unread 13-02-2010, 16:13
Twisted eric's Avatar
Twisted eric Twisted eric is offline
Registered User
FRC #0581
 
Join Date: Jan 2010
Location: San Jose
Posts: 54
Twisted eric is an unknown quantity at this point
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);
}

}
}
  #3   Spotlight this post!  
Unread 13-02-2010, 16:48
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: HELP programming noobs here.

You said you switched to Java-

Did you update the cRIO for Java?
  #4   Spotlight this post!  
Unread 13-02-2010, 16:55
Twisted eric's Avatar
Twisted eric Twisted eric is offline
Registered User
FRC #0581
 
Join Date: Jan 2010
Location: San Jose
Posts: 54
Twisted eric is an unknown quantity at this point
Re: HELP programming noobs here.

yes we switched to java when imaging the Crio.
  #5   Spotlight this post!  
Unread 13-02-2010, 16:59
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
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
  #6   Spotlight this post!  
Unread 13-02-2010, 17:12
Twisted eric's Avatar
Twisted eric Twisted eric is offline
Registered User
FRC #0581
 
Join Date: Jan 2010
Location: San Jose
Posts: 54
Twisted eric is an unknown quantity at this point
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.
Closed Thread


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
Favorite Moment of FIRST (was: Noobs) joycecutliff Chit-Chat 5 02-02-2008 18:41
Want to learn PIC Programming? Good deal here! Rombus Chit-Chat 2 10-04-2006 11:43
If you come here asking for Delphi programming... Raven_Writer Programming 0 11-08-2004 17:03
Lil Programming Help here!!! hybrid Programming 4 25-03-2004 09:18
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46


All times are GMT -5. The time now is 10:06.

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