View Single Post
  #7   Spotlight this post!  
Unread 28-02-2014, 11:45
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,738
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