Go to Post The evil Chief Delphi machine will begin to consume you and your non-robotics life thread by thread. First hand experience :D. - frcguy [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-01-2015, 22:58
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Why do the pneumatics not work?

https://github.com/Patribots4738/BattleOfTheBorder

Here's our code on git.
Currently the solenoid fires once and then the code crashes, and the compressor does not start.

The pressure switch is wired correctly, NC connected to DIO signal and C connected to DIO (-). The compressor is wired to a spike, and the spike is connected to a RELAY port.

In the code you can see that they're both correctly inputted (if the right code is uploaded of course).

We're kind of stumped.
__________________
College sux yo
  #2   Spotlight this post!  
Unread 05-01-2015, 23:11
ejb1123 ejb1123 is offline
Registered User
AKA: E.J. Bevenour
FRC #5404 (Gearaffes)
Team Role: Leadership
 
Join Date: Nov 2014
Rookie Year: 2008
Location: U.S.
Posts: 7
ejb1123 is an unknown quantity at this point
If you don't define pcmID it defaults to 0.
  #3   Spotlight this post!  
Unread 05-01-2015, 23:16
x86_4819's Avatar
x86_4819 x86_4819 is offline
computer-whisperer
AKA: Christian Balcom
FRC #4819 (Flat Mountain Mechanics)
Team Role: Programmer
 
Join Date: Sep 2014
Rookie Year: 2013
Location: Shepherd MI
Posts: 92
x86_4819 is on a distinguished road
Re: Why do the pneumatics not work?

Why do you have a "while (true)" loop inside your TeleopPeriodic? TeleopPeriodIc will automatically get called every 20ms, so there is no need for you to have your own loop inside of it. That is probably the source of your problem, as you aren't letting anything else run while your while loop is iterating infinitely.
__________________




My Github Repositories
  #4   Spotlight this post!  
Unread 05-01-2015, 23:23
tStano tStano is offline
Registered User
AKA: Sparks
no team
Team Role: Electrical
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Madison, WI
Posts: 177
tStano will become famous soon enough
Re: Why do the pneumatics not work?

Is this on a roboRIO or a cRIO?

if its a roboRIO, there are multiple issues with the legality and likely the functionality of this. You will need a pneumatics control module in your system, on a CAN network with the roboRIO, Power distribution panel, etc.

If its a cRIO, the people above me probably are on the right track.
  #5   Spotlight this post!  
Unread 05-01-2015, 23:28
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Re: Why do the pneumatics not work?

Quote:
Originally Posted by xXhunter47Xx View Post
The pressure switch is wired correctly, NC connected to DIO signal and C connected to DIO (-). The compressor is wired to a spike, and the spike is connected to a RELAY port.

With the 2015 wiring you don't need to connect the compressor to a spike, just wire it into the PCM (Pneumatic control module) along with the pressure sensor.
  #6   Spotlight this post!  
Unread 06-01-2015, 12:34
xXhunter47Xx's Avatar
xXhunter47Xx xXhunter47Xx is offline
Lord of Lazy
AKA: Austin $wagmaster1337
FRC #4738 (Patribots)
Team Role: College Student
 
Join Date: Jan 2014
Rookie Year: 2013
Location: San Diego
Posts: 305
xXhunter47Xx will become famous soon enough
Re: Why do the pneumatics not work?

Should have specified, it's a cRIO. The issue was a crimped PWM. I'll bring up the while loop issue with the rest of programming though. Thanks everyone!
__________________
College sux yo
Closed Thread


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 03:00.

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