Go to Post Just remember, a spark of inspiration can produce a lifetime of success. - JoeXIII'007 [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
  #2   Spotlight this post!  
Unread 01-31-2010, 11:20 AM
Steve Warner Steve Warner is offline
Controls / Programming
FRC #0234 (Cyber Blue)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Indiana
Posts: 41
Steve Warner is an unknown quantity at this point
Re: Digital IOs scrambled on Dashboard

We had the same problem. If you print out the value in hex that is being sent to the DS you'll see what is going on. Writing from memory, the two rightmost bits are not used. The third bit is point 14, the fourth is point 13, etc. I might have this backwards but it's something like that. We shifted the bits right two places and then shuffled the bits so they wound up in the right place. A good example of bit shifting to show the students but another bit of "sample" code that doesn't work. If you need more detail on this, let me know.
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
Digital IO in C++ EricGoodchild C/C++ 3 01-15-2009 11:05 PM
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04 AM
Digital Caliper as a Digital Readout on Small Mill sanddrag Technical Discussion 9 10-13-2005 10:51 PM
2004 Dashboard Protocal vs 2005 Dashboard Protocal Kyle T Programming 4 03-14-2005 10:19 PM
Digital videos archiver 2001 1 06-24-2002 03:57 AM


All times are GMT -5. The time now is 10:26 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