Go to Post Wow... no duct tape? - Stormnnormn [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
  #6   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
 


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 11:15.

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