Go to Post No, but you have access to the most powerful machine tool of all; a telephone. We had zero machining sponsors, now we've probably had over 30 unique shops run parts for us; All we did was ask. - AdamHeard [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 02-02-2012, 22:02
NS_Radication's Avatar
NS_Radication NS_Radication is offline
Student
AKA: Marco Schoener
FRC #1369 (Minotaur)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Tampa
Posts: 88
NS_Radication is an unknown quantity at this point
Autonomous Motor Problems

This is my first year as a programmer for my FRC Team, but I have a Java background to work off of.

I am using Netbeans 7.1 with a default program with IterativeRobot and SimpleRobot subclasses. Both are default programs that I have used for testing verbatim and the results, after I have fixed electrical and network on the Classmate (2009) issues, is the Timer.delay() function.

Following examples are from the SimpleRobot program, the IterativeRobot program is the BuiltInDefaultCode code.

In Tele-Op, the motor will respond to the joystick and, by default, has a the delay set to 0.005 seconds:

driveTrain.tankDrive(leftStick, rightStick);
Timer.delay(0.005);

In Autonomous, it has a 2 second value with a movement at half speed.

for (int i; i < 4; i++)
{
driveTrain.drive(0.5, 0.0);
Timer.delay(2.0);
}

The issue is that instead of holding the motor value until the seconds expire, the Jaguar and motor will move for a split second and wait the entire 2 seconds until repeat.

If anyone has any solution, question, comment, advice, anti-Murphy's Law Orbital cannon, or other pieces of help, it would be GREATLY appreciated!

Thank you in advanced!
__________________
Team 1369
Senior
Head Programmer (Java)
Head Electrician
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


All times are GMT -5. The time now is 08:34.

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