Go to Post There is nothing wrong with being great and being proud of it. - TubaMorg [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2010, 16:03
scott.paul scott.paul is offline
Registered User
FRC #3011
 
Join Date: Jan 2010
Location: Wiesbaden, GE
Posts: 2
scott.paul is an unknown quantity at this point
Re: Running Java Program

Our programming team is also having a hard time with the initial example in the Java getting started document. Our first error was a version mismatch as we had an old cRIO image. The next step was to figure out how the RobotDrive works. The Javadoc does a good job explaining the classes and constructors.

Here are a few points of interest: public RobotDrive(int leftMotorChannel, int rightMotorChannel, double sensitivity)Constructor for RobotDrive with 2 motors specified with channel numbers. Set up parameters for a two wheel drive system where the left and right motor pwm channels are specified in the call. This call assumes Jaguars for controlling the motors."

"Specification of an IO Port consists of a slot number followed by a channel number. If the port is on the lowest numbered slot/module, the slot parameter can be left out."

For the Getting Started Example, I assume that the example will have to be modified for a Victor controller or if you a higher slot number than 4 on the cRIO. I am not sure how to modify the the RobotDrive for a Victor yet.

Finally, I believe our current issue is that our project was not selected as the main project and as a result, a println from another program displayed in the output.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2010, 16:55
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: Running Java Program

Quote:
Originally Posted by scott.paul View Post
Finally, I believe our current issue is that our project was not selected as the main project and as a result, a println from another program displayed in the output.
Interesting, I never thought about that. We've recently had some issues pop up, and I'm wondering if that'll solve some, if not, all, of our problems.
__________________
Quote:
The difference between theory and application is that in theory, theory and application are the same; In application, they are not.
Reply With Quote
Reply


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
Learning to Program in Java Kingofl337 Java 15 10-10-2009 10:47
running program on startup windell747 FRC Control System 2 22-01-2009 14:21
cRIO Not Running Program railerobotics NI LabVIEW 5 18-01-2009 08:48
Running program without transmitter bear24rw VEX 3 15-11-2007 23:41
Canera Calibration- Java program itsme Programming 1 20-01-2007 16:14


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

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