Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Very Basic Java Code Needed (http://www.chiefdelphi.com/forums/showthread.php?t=111433)

matthewdenny 17-01-2013 08:49

Very Basic Java Code Needed
 
So it is our first year with Java and we have set up our IDE we have a connection to the cRio and can ping. We started a simple robot template, and created 4 motors, and then we set the motors to a power of 1 (100%) in the autonomous for 5 seconds. However when we deploy the code and click enable on the drive station, nothing happens. So does anyone out there have a very simple code that turns on motors that we could try?

(Sorry to bother you all, but we really don't have any mentors for this sort of thing)

BurtGummer 17-01-2013 10:30

Re: Very Basic Java Code Needed
 
There are several things that could be wrong. Is the driver station set to autonomous? Is the robot status light indicating any issues? Either post your code here or PM it to me and I'd be happy to help.

joelg236 17-01-2013 11:06

Re: Very Basic Java Code Needed
 
You should also be sure to check you have put the correct ports down. Ports are which header the pwm cables are attached to on the digital sidecar. Also, how did you turn them on for 5 seconds? The Timer class in wpilibj should be what you're using (probably not Timer.delay() though). Posting your code would be helpful.

matthewdenny 21-01-2013 20:22

Re: Very Basic Java Code Needed
 
Ok, so it turns out to be a loose ribbon cable to the sidecar. The code worked fine. We had a momentary brain issue.

Ginto8 21-01-2013 22:07

Re: Very Basic Java Code Needed
 
Quote:

Originally Posted by matthewdenny (Post 1219743)
We had a momentary brain issue.

Those are fun aren't they? We have them all the time.


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

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