Go to Post In fact, one of our volunteers just found out about the entire FIRST program two weeks ago and had so much fun on Thursday that he came back on Friday to help us again! - KathieK [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 27-02-2014, 15:09
TenaciousDrones's Avatar
TenaciousDrones TenaciousDrones is offline
FRC Team 4780
FRC #4780 (The Tenacious Drones)
 
Join Date: Sep 2013
Rookie Year: 2012
Location: Parma, Ohio
Posts: 57
TenaciousDrones is an unknown quantity at this point
Bunch of Different Issues

Ok so I'm done posting a ganzillion different threads about different problems, so I'm just going to make one with everything together.

Our problems include but are not limited to:
- spikes not working
- unsure of how to use pressure switch
- unsure if our gyro is programmed correctly
- unsure if our potentiometer is programmed correctly
- unsure if our Talon motor controller is programmed correctly
- unsure if our solenoids are programmed correctly
- unsure how to get vision into Netbeans
- unsure how to test any of our programming now.

If you have anything that might be useful, please just say it because my partner and are in desperate need right now. We are using RobotBuilder exported to Java. For Vision we have the tape detected in RoboRealm but we are willing to use another program if someone isn't used to RoboRealm. Thanks in advance.

Last edited by TenaciousDrones : 27-02-2014 at 15:33. Reason: I forgot the "s" in threads and my partner wouldn't stop annoying me.
Reply With Quote
  #2   Spotlight this post!  
Unread 27-02-2014, 15:57
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Bunch of Different Issues

Quote:
Originally Posted by TenaciousDrones View Post
Ok so I'm done posting a ganzillion different threads about different problems, so I'm just going to make one with everything together.

Our problems include but are not limited to:
- spikes not working
- unsure of how to use pressure switch
- unsure if our gyro is programmed correctly
- unsure if our potentiometer is programmed correctly
- unsure if our Talon motor controller is programmed correctly
- unsure if our solenoids are programmed correctly
- unsure how to get vision into Netbeans
- unsure how to test any of our programming now.

If you have anything that might be useful, please just say it because my partner and are in desperate need right now. We are using RobotBuilder exported to Java. For Vision we have the tape detected in RoboRealm but we are willing to use another program if someone isn't used to RoboRealm. Thanks in advance.
Spikes - is the light illuminating on the digital sidecar beside the PWM cable? If not, are you setting the position to Forwards or Backwards?

Pressure switch - Create a DigitalInput object and get its input. True usually means pressure is not at 120PSI yet.

Gyro - Are you creating a Gyro object and calling getAngle() from it? Do you have the correct port for the analog signal, and are you sure it is wired correctly?

Potentiometer - Create an AnalogChannel object and get its voltage or average (depending on usage).

Talon - Should just be a Talon object set using the set(double) method.

Solenoid - Single action or dual action? Single is only one boolean setting its state, and dual has three positions (left, right, off)

Vision - There are many options here - what do you need vision for?

Testing - Do you have an extra cRIO available from a local team? There have been attempts at simulators, but I haven't found anything very good yet.
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-02-2014, 16:51
TenaciousDrones's Avatar
TenaciousDrones TenaciousDrones is offline
FRC Team 4780
FRC #4780 (The Tenacious Drones)
 
Join Date: Sep 2013
Rookie Year: 2012
Location: Parma, Ohio
Posts: 57
TenaciousDrones is an unknown quantity at this point
Re: Bunch of Different Issues

Spikes: yes
Pressure Switch: that's what i thought
Gyro:yes; yes; pretty sure (see picture below)
Potentiometer: yes (I think) (see photo below)
Talon: Ok coolio
Solenoid: single
Vision: To detect the hot goal (the tape that flips)
Testing: Not sure
Attached Thumbnails
Click image for larger version

Name:	20140228_105107.jpg
Views:	15
Size:	1.56 MB
ID:	16411  Click image for larger version

Name:	20140228_105204.jpg
Views:	13
Size:	1.70 MB
ID:	16412  

Last edited by TenaciousDrones : 28-02-2014 at 10:55. Reason: forgot to attach pictures
Reply With Quote
  #4   Spotlight this post!  
Unread 27-02-2014, 23:13
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Bunch of Different Issues

Make sure you have the spikes' pwm cables plugged into the relay port on the digital side car. Use the compressor class for controlling the compressor. It handles the spike relay and the pressure switch per regulation easily.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
Reply With Quote
  #5   Spotlight this post!  
Unread 28-02-2014, 10:42
TenaciousDrones's Avatar
TenaciousDrones TenaciousDrones is offline
FRC Team 4780
FRC #4780 (The Tenacious Drones)
 
Join Date: Sep 2013
Rookie Year: 2012
Location: Parma, Ohio
Posts: 57
TenaciousDrones is an unknown quantity at this point
Re: Bunch of Different Issues

Quote:
Originally Posted by Team3266Spencer View Post
Make sure you have the spikes' pwm cables plugged into the relay port on the digital side car. Use the compressor class for controlling the compressor. It handles the spike relay and the pressure switch per regulation easily.
yes they are plugged in to the relay section
Reply With Quote
  #6   Spotlight this post!  
Unread 28-02-2014, 11:06
TenaciousDrones's Avatar
TenaciousDrones TenaciousDrones is offline
FRC Team 4780
FRC #4780 (The Tenacious Drones)
 
Join Date: Sep 2013
Rookie Year: 2012
Location: Parma, Ohio
Posts: 57
TenaciousDrones is an unknown quantity at this point
Re: Bunch of Different Issues

also here is our codes
Attached Files
File Type: zip MainProgram.zip (1.41 MB, 7 views)
File Type: zip Axissetup.zip (956 Bytes, 1 views)
Reply With Quote
  #7   Spotlight this post!  
Unread 28-02-2014, 11:45
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,827
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Bunch of Different Issues

Quote:
Originally Posted by TenaciousDrones View Post
- spikes not working
On the DSC there are LED's next to the relay outputs, two per output. They light up depending on what you set the relay to - Forwards/Backwards will light up one of the LED's but not the other, Off will turn them both off, and On will turn them both on. These relate to the state the Spike can take - Forwards/Backwards will give you a 12V difference over the outputs, allowing you to run a motor forwards or backwards. Off connects both outputs to ground, and On connects them both to +12V. As a result, if you set it to "On", an attached motor won't move, as you have the same voltage going into both inputs!

Next, check the Spike itself. When you set the relay output to Forward/Backward, the Spike LED should be Green/Red, respectively. If it stays orange, and you're sure only one of the LED's next to the relay output is lit, then there's something wrong with the PWM connection - make sure the wire isn't damaged and that it's inserted correctly into the Spike. If the LED on the spike is changing, you can confirm this with a multimeter across the output terminals, and then look at the wiring from there to your motor.

Quote:
- unsure of how to use pressure switch
Wire the two terminals on the switch to ground and signal on a digital input on the DSC.

In Java, you don't have to actually do very much. Create a new Compressor object - the constructor takes the relay port for the compressor and the port for the digital input from the pressure switch. Then you just have to call Compressor.start() and let it run in the background - it takes care of everything for you!

Quote:
- unsure if our gyro is programmed correctly
- unsure if our potentiometer is programmed correctly
- unsure if our Talon motor controller is programmed correctly
- unsure if our solenoids are programmed correctly
You'll have to provide more information about the problems your having with them, otherwise there's not much we can do to provide pointed advice on how to correct any issues
Quote:
- unsure how to get vision into Netbeans
- unsure how to test any of our programming now.
For vision, I'm not sure, I wasn't involved with that part of stuff for my team. For testing... you need your control system outside of the bag! Either you kept it out as part of your 45 lbs of withholding or you have a second, identical setup with the cRio, speed controllers, spikes, power distribution board, digital side car, etc. How much of last year's robot control system is still intact? Maybe you can get that to approximate this year's system.

If you want someone to take a look at your code, I'm sure my team would be willing to help - we've been using Java since the current control system came out. Just send specific, well defined questions/code snippets to 2177 (at) therobettes.com
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
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


All times are GMT -5. The time now is 13:23.

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