Go to Post And I think the poll needs another option: WILL be under weight ... eventually ... just get me a drill. :D - Franchesca [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 01-09-2006, 11:44
divergentdave divergentdave is offline
Registered User
FRC #1816 (Green Machine)
 
Join Date: Jun 2006
Rookie Year: 2007
Location: MN
Posts: 35
divergentdave is a jewel in the roughdivergentdave is a jewel in the roughdivergentdave is a jewel in the rough
Send a message via AIM to divergentdave
Re: Help me pls...

The data you are getting is in the 12rgbrgb pattern, but it isn't human readable. For example, instead of sending the character '1', followed by the character '0', followed by the character '0', the CMUcam2 sends only one character that the computer sees as the hex value 0x64, which is 100 in basse ten. Then, when you pass 0x64 to be printed on the screen as a single character, it would show up as a 'd', because 'd' is the 100th character in the ASCII table. So what you need to do is take each character and cast it to a number, and then that number is the intensity value for that pixel. Our team used Python for CMUcam2, so we used the ord(char) function. Google tells me the VB equivalent of this is asc(), so if you use that, you should be able to read the pixel values.

Oh, by the way, the 1s, 2s, and 3s used in the SF protocol are encoded the same way. So when you expect to see a one at the beginning of the frame dump, the one is send as the hex value '0x01', which you can't read without using asc().
 


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
section 'InterruptVectorLow' type is non-overlay (was: HELP HELP HELP!!!!!) naor52 Programming 14 24-02-2007 01:19
MPLAB...ERROR..Pls help..Thank You ocean_blue74 Programming 3 12-08-2006 11:50
Wierd gyro code problems...pls help Salik Syed Programming 4 14-03-2004 01:29
UTC NE - Pros/Cons - Anyone who attndd pls read. tritium Regional Competitions 3 15-04-2002 14:42


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

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