Go to Post All I want for Christmas is a better game hint, a better game hint, a better game hint... - Schnabel [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 13-01-2012, 16:23
sebflippers sebflippers is offline
Registered User
FRC #2914
 
Join Date: Jan 2012
Location: dc
Posts: 56
sebflippers will become famous soon enoughsebflippers will become famous soon enough
not able to get any programs to work

Hi all,
I have absolutely no idea what is causing this problem, so I just decided to post in this section of the forum. Before the season started, I started doing simple things like getting led's to blink (this is our first year using java). I used image 28 and whatever netbeans plugin version at that time. I got plenty of things working (putting it all in the robotinit() section in the iterative template). Anyway, I have been trying to get some relays and solenoids to work, but nothing worked, so I threw away all of those programs. Just now it occurred to me that nothing has been working since I updated the cRio and Netbeans plugins. The programs still get uploaded. Netbeans says so. But nothing works. Some other things I have noticed: All Digital outputs are at 5v (even though they were not referenced in the code). Also, they solenoids go 1v-0v-1v-0v at 1 second intervals.

Don't worry, I understand the new way of referencing slots, and have updated my code accordingly. Here is an example:

package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.*;
public class RobotTemplate extends IterativeRobot {
Relay twoWay = new Relay(1,1)
public void robotInit() {
twoWay.set(Relay.Value.kForward);
}}

with the digital module in slot 2. Also, when I reimaged the cRio, I had to format it with labview and the new image, and then go back and change it to java.

any Ideas?
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 09:36.

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