Go to Post Sleep? What is sleep? - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 02-03-2009, 11:37 PM
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Trouble Reading Drivers Station Digital Inputs

This does seem a LOT like the flaoting value problem some teams have experienced--you might want to do a continuity test and make sure the current is actuall getting through everything

You could also use a purely software approach to the problem, though it's a bit hack-ish. Since this is apparently a rare event, you could design a "buffering" system, where you keep track of not only the bit that you are feeding into your system but also a few before and after it. In other words, with the circuit closed, this would normally look like:

111 1 111

Where the value is the middle was the one you were feeding to anything that needed that value. Obviously with the circuit open, this should look like

000 0 000

But if you have an occasionally occurring 0, this could look like

111 0 111

In this case, it's fairly trivial for the algorithm to "bridge the gap" and change the 0 to a 1. Your millage will vary depending on how often you get a 0, so you'll probably need to figure out what kind of ratio of 1s to 0s you need for your system to work reliably without losing short periods where the circuit is actually open.
__________________
Get yer robot source code here!
Reply With Quote
 


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
using digital inputs from the driver station SL8 NI LabVIEW 2 02-04-2009 03:53 PM
Programming Digital Inputs from Driver Station spooncwru Programming 8 02-01-2009 01:14 PM
reading multiple digital inputs angelkat Programming 2 01-25-2009 12:22 AM
Using driver station digital inputs Japper FRC Control System 6 01-19-2009 08:01 PM
Reading NES controller from digital inputs bear24rw Programming 10 04-07-2007 01:17 AM


All times are GMT -5. The time now is 10:12 AM.

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