Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Bunch of Different Issues (http://www.chiefdelphi.com/forums/showthread.php?t=127282)

TenaciousDrones 27-02-2014 15:09

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.

joelg236 27-02-2014 15:57

Re: Bunch of Different Issues
 
Quote:

Originally Posted by TenaciousDrones (Post 1350594)
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.

TenaciousDrones 27-02-2014 16:51

Re: Bunch of Different Issues
 
2 Attachment(s)
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

Team3266Spencer 27-02-2014 23:13

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.

TenaciousDrones 28-02-2014 10:42

Re: Bunch of Different Issues
 
Quote:

Originally Posted by Team3266Spencer (Post 1350774)
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

TenaciousDrones 28-02-2014 11:06

Re: Bunch of Different Issues
 
2 Attachment(s)
also here is our codes

Jon Stratis 28-02-2014 11:45

Re: Bunch of Different Issues
 
Quote:

Originally Posted by TenaciousDrones (Post 1350594)
- 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


All times are GMT -5. The time now is 11:36.

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