Go to Post I guess it all just goes back to the fact that you need to finish your robot before it goes in the crate. - sanddrag [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 01-09-2006, 04:35
u4170675 u4170675 is offline
Registered User
no team
 
Join Date: Aug 2006
Location: thailand
Posts: 2
u4170675 is an unknown quantity at this point
Help me pls...

Hello guys...
may i introduce myself.I'm from thailand... my english isn't good.......

I have a big problem.... I have a VB code which use DF command...
then I ran the program.... My cmucam doesn't have DF command
I think DF replaced by SF command................

so i try to use SF function to get the data from cmucam ....it's work!
but I can't regcognise the data cause they are some things that like

maKP(U A$IU AL<>U A$L*YL%*L L (G AUsonthAYA(KMAy098a34ymawvk....



How can i get data from cmucam in pattern like 1 2 rgbrgb ... rgbrgb 2 rgbrgbr ... rgbrgb ...? please me
  #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().
  #3   Spotlight this post!  
Unread 13-09-2006, 04:05
u4170675 u4170675 is offline
Registered User
no team
 
Join Date: Aug 2006
Location: thailand
Posts: 2
u4170675 is an unknown quantity at this point
Re: Help me pls...

Thank you so much....
I've done it...

i'm gonna make a checkers robot... by using cmucam to be a robot's eye
now I'm creating the ai robot ... very hard for me.... I'm thinking to search a vb checkers source code then apply some things.....

by the way here is a very very good one website
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
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 15:09.

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