View Single Post
  #8   Spotlight this post!  
Unread 10-08-2007, 03:20
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Interactive DashBoard

Quote:
Originally Posted by lndnny View Post
This program looks great!

Too bad team 808 is out of first for good... but we aren't giving up.
We are doing a program called the national robotics challenge and entering a robot for a grand total of 30 some dollars. With none of the limitations of FIRST, we are actually going to try to send sensor output to a laptop and do all the long calculations there, but we're having problems doing this. Would you mind answering a few questions?

Was this program created in Visual Basic using the .net framework?

If it was, can you provide some source code or provide an example on how to read data into the visual basic program? - every time I try to read input from the serial port in my test program from the RC, I get question marks.

I'm using Kevin's serial port code to send data to the computer. Our team membership currently numbers four and we are all trying to learn as much as we can.

Thanks for your time.
Dan - former team 808
It's written in C++. I don't really know C++ so the code is quite crude. If you want it, I will release the code to you. The serial port part is easy but I have no idea of Visual Basic syntax...

Make sure your baud rate on the program matches the RC's, which is 115200.

Trying to set up a communication protocol between the RC and the computer was probably one of the most time consuming parts of the whole project. I actually used a software called Free Serial Port Monitor to see every byte that entered and left the serial port. This helps you see the difference between what you believe it is sending and what it is actually sending. The software has some major bugs: feeding it too much data crashes it(ex. reading the bytes while flashing the RC will crash it). It was not that hard to freeze it but it was a valuable asset to my project. If it does start freezing go into Task Manager->Processes->Select Device Monitor->End Process. Don't try to do it by closing or ending task because it just hangs for a while. You might be able to find some better software but this was the only FREE one that I could find.

http://www.freedownloadscenter.com/P...t_Monitor.html
Go to the bottom.

Just because you are getting a question mark doesn't mean you are not getting garbage data. ? = 63 in decimal...try reading byte instead of char from the serial port.

Could you elaborate a little bit more on your goal or setup?

Lohit
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.

Last edited by 6600gt : 10-08-2007 at 03:35.