Go to Post Continue? You mean we can quit? Why didn't someone say so! - tsaksa [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 18-02-2006, 00:10
Ari Allyn-Feuer Ari Allyn-Feuer is offline
Registered User
FRC #0753
 
Join Date: Feb 2006
Location: Bend, OR
Posts: 22
Ari Allyn-Feuer is on a distinguished road
No value in digital ins using NASON pressure switch.

Hi.

Like many teams, 753 is attempting to control the pneumatic compressor using the NASON pressure switch, running it when the switch reports low pressure and shutting off when the switch reports 115 PSI. I am not our main programmer, (that's Katherine McAuliffe AKA CrossedHeart), but am a fairly close second, and the sensors specialist. I am conversant in variables, loops, arrays, and syntax in C++, and am capable of using the camera variables and setting the PWMs and relays and such, but I ran into what appears a clean break between output and input signal in attempting to use the NASON pressure switch.

After experiments in controlling the compressor and other items on SPIKEs on the relays, I am able to control the relay outputs and make the compressor obey commands. But when I used a conditionality loop to run it based on the input from the digital in 1, it didn't respond, but ran forever as if the switch never opened.

I tested the switch with an ohmmeter, and it reported the proper continuity at the proper pressures. I made sure it was wired the way specified in the FIRST documents, and that pressure from the compressor was reaching the valve, and that the return logic operated in the way I thought (1=continuity, 0=ground). I tried reversing and modifying my conditionality loop in many different ways to see if it was causing the problem, and used the compressor code provided by FIRST. None of it worked, so i ordered a printf of the value coming from that input every loop. It returned nothing. I sandwiched it betwen two distinctive blocks of text so I could see it, but it failed to appear.

I have reached the conclusion that the digital in is not returning a value. Has someone else had and solved this problem? Do I need to initialize the Digital ins besides declaring them inputs in user initialization?

Eternal gratitude to any who helps me,

Ari Allyn-Feuer.
  #2   Spotlight this post!  
Unread 18-02-2006, 01:18
Ari Allyn-Feuer Ari Allyn-Feuer is offline
Registered User
FRC #0753
 
Join Date: Feb 2006
Location: Bend, OR
Posts: 22
Ari Allyn-Feuer is on a distinguished road
Re: No value in digital ins using NASON pressure switch.

Consider the question retracted. For all my long hours of testing, the switch cable lay passively plugged into the wrong digital in.

This is a confirmation of one of Murphy's many computer laws:

"In every case in which computer error is asserted, there are at least two human errors, including the error of blaming it on the computer."

Thanks anyway.

Ari Allyn-Feuer.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help: Formula Needed Wilson Motors 21 30-12-2005 18:09
PRESSURE SWITCH Mr. Steve Pneumatics 20 01-12-2005 10:20
Urgent need for Nason pressure switch!! PLEASE HELP! haverfordfords Pneumatics 12 18-02-2005 02:04
Digital Inputs interfering with each other Bongle Programming 8 23-02-2004 11:18
Need help with 255 Variable Joseph F Programming 18 26-02-2002 14:49


All times are GMT -5. The time now is 03:16.

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