Go to Post Just because you can doesn't mean you should. - pfreivald [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 03-08-2007, 14:35
lynca's Avatar
lynca lynca is offline
Andrew Lynch
FRC #2587 (DiscoBots)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Houston, TX
Posts: 1,612
lynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond reputelynca has a reputation beyond repute
Send a message via AIM to lynca
Re: Interactive DashBoard

It would be nice if this code could be modified to also work with the vex system. That will give a wider user base to develop the features of an interactive dashboard. Hopefully soon we will have a common serial interface to control the FRC RC with a any type of programming language. Overall, great potential !
__________________
History: 624 - Cryptonite --> 118 - Robonauts --> 2158 - AusTIN CANS --> 2587 DiscoBots
Bio: Andrew Lynch "How I Work" ---- LinkedIn , Facebook, Twitter
  #2   Spotlight this post!  
Unread 03-08-2007, 17:22
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Interactive DashBoard

Quote:
Originally Posted by lynca View Post
Hopefully soon we will have a common serial interface to control the FRC RC with a any type of programming language.
That really wouldnt be that hard to do, we just need to make a standard protocal. Then you can control it through a program running on your computer or you could add a seperate board running, say java that would communicate with the RC over the serial port
  #3   Spotlight this post!  
Unread 03-08-2007, 21:27
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Interactive DashBoard

zor!

This looks rockin'!!

I can't wait to try it out. This sounds like a 74-hour-marathon-programmer's dream app!

Keep up the good work!

Jacob
  #4   Spotlight this post!  
Unread 03-08-2007, 22:36
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 lynca View Post
It would be nice if this code could be modified to also work with the vex system. That will give a wider user base to develop the features of an interactive dashboard. Hopefully soon we will have a common serial interface to control the FRC RC with a any type of programming language. Overall, great potential !
I believe most people that use vex, probably use Easy C. I don't have either the vex system or the Easy C system to play with. But all we have to do is port over Kevin Watson's serial port code and my DashBoard code and it should work very. I can port over the DashBoard code but I need some one else who knows how to work with interrupts on the Vex to port over the serial code. We could probably have a checkbox or something on the DashBoard, to switch between the RC and the Vex.
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #5   Spotlight this post!  
Unread 03-08-2007, 23:14
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interactive DashBoard

I've successfully used Kevin's Serial, Camera, and ADC code on the Vex platform.

Since the processors used in the pre-2006 FRC RC is the same as the Vex controller, following Kevin's instructions to run his code on the old or EDU controllers will work for Vex. The only difference is that you need to use the Vex library, which is in the vex "starter code" available here.

EDIT: The instructions I refer to are in the readmes for each of Kevin's projects.
__________________
Eric Haskins KC9JVH
  #6   Spotlight this post!  
Unread 04-08-2007, 11:23
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 EHaskins View Post
I've successfully used Kevin's Serial, Camera, and ADC code on the Vex platform.

Since the processors used in the pre-2006 FRC RC is the same as the Vex controller, following Kevin's instructions to run his code on the old or EDU controllers will work for Vex. The only difference is that you need to use the Vex library, which is in the vex "starter code" available here.

EDIT: The instructions I refer to are in the readmes for each of Kevin's projects.
You used MPLAB and C18 for this, right? I don't know much about Vex but what do most people use to program their VEX system, MPLAB or Easy C?

If you have gotten the serial port code to work, then all you have to do is include the DashBoard.c/h and setup the user_routines.c similar to the sample code(or follow the DashBoard_readme.doc instructions)...maybe get rid of the camera stuff...Does anyone use the camera with the VEX?
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #7   Spotlight this post!  
Unread 04-08-2007, 15:49
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Interactive DashBoard

Quote:
Originally Posted by 6600gt View Post
You used MPLAB and C18 for this, right? I don't know much about Vex but what do most people use to program their VEX system, MPLAB or Easy C?

If you have gotten the serial port code to work, then all you have to do is include the DashBoard.c/h and setup the user_routines.c similar to the sample code(or follow the DashBoard_readme.doc instructions)...maybe get rid of the camera stuff...Does anyone use the camera with the VEX?
I use c18 for Vex, the IDE I use changes frequently, but it's normally MPLab. From what I've seen most people are using EasyC for Vex, but like I said the processor is almost the same as the FRC RC, so most tools are compatible with both.

I've used the camera without any issues, there are porting instructions for that code as well.
__________________
Eric Haskins KC9JVH
  #8   Spotlight this post!  
Unread 06-08-2007, 04:11
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 EHaskins View Post
I use c18 for Vex, the IDE I use changes frequently, but it's normally MPLab. From what I've seen most people are using EasyC for Vex, but like I said the processor is almost the same as the FRC RC, so most tools are compatible with both.

I've used the camera without any issues, there are porting instructions for that code as well.
I would gladly help anyone port over the code to VEX. Still, has anyone gotten a chance to test it?

To continue progress, which one should I continue working on right now:
  • Joystick (Allows you to simulate all of the OI inputs from the PC)
  • DataView data Logging into text file
  • Text file based PWM name memory
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #9   Spotlight this post!  
Unread 09-08-2007, 13:23
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

Thanks everyone for your support and enthusiasm.

Maybe it's because of the off season or summer, but not too many people seem interested. Is there something missing, or is it too hard to implement?

If someone can give me some pointers or ideas, I would be very thankful.

Thanks in advance.

Lohit
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
  #10   Spotlight this post!  
Unread 09-08-2007, 18:57
Tottanka's Avatar
Tottanka Tottanka is offline
It isnt about bots,its about humans
AKA: Liron Gurvitz
FRC #3211 (The Y Team)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Hadera, Israel
Posts: 1,418
Tottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond reputeTottanka has a reputation beyond repute
Re: Interactive DashBoard

i believe it's the off season.
We ar currently working on the mechanical issues on our bot, but we will soon need the programming. I'll be sure to show our lead programmer your software, it looks great.
I can also promise to give you feedback once i have it. It will take a week or 2 though =]
__________________
My FRC record: 10 Years,FTA (2008-9), 3 Teams(1947,2669,3211).3 RCA, 1 Championship EI(2016), 1 Divisional finalist (2016), 1 Regional winner.
Israeli 2016 Volunteer of the year.
  #11   Spotlight this post!  
Unread 09-08-2007, 21:15
lndnny's Avatar
lndnny lndnny is offline
Does a bit of everything!
None #0808 (Mechanical Mayhem)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: alliance
Posts: 22
lndnny is an unknown quantity at this point
Re: Interactive DashBoard

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
  #12   Spotlight this post!  
Unread 10-08-2007, 00:18
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
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
This program is written on .net, I believe its managed C++, but I'm not sure.

If you want to see how to use .net serial comm to communicate with the RC have a look at seanwitte's dashboard viewer. Its written in C#, but the implementation is very similar.

If you want help with .net serial comm, or .net in general feel free to PM me.
__________________
Eric Haskins KC9JVH
  #13   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.
  #14   Spotlight this post!  
Unread 10-08-2007, 13:37
lndnny's Avatar
lndnny lndnny is offline
Does a bit of everything!
None #0808 (Mechanical Mayhem)
Team Role: Programmer
 
Join Date: Jun 2005
Rookie Year: 2005
Location: alliance
Posts: 22
lndnny is an unknown quantity at this point
Re: Interactive DashBoard

Wow. Thanks for the quick replies.

EHaskins - thank you for showing me that white paper. I thought I had done a thorough search on serial ports in the white papers section, but it never occurred to me to search for another dashboard viewer.

6600gt - thank you for the program. It seems like it would help me a lot. It would be great to see what was truly being sent. To elaborate on what I'm doing: our robot is going to be a heavyweight sumo robot - 150 lbs fully autonomous. We hope to take all our sensor readings - both digital and analog - and send them to a laptop through a wireless serial transmitter. The laptop should then read the information and perform heavy math to find where the robot and the opponent are on the field. The laptop will then send pwm outputs back to the robot (within one program loop - would that be possible?). Thanks for the suggestion - I'm going to try reading bytes whenever I get the chance to.

Once again, thanks - these tips are great
Dan - 808
  #15   Spotlight this post!  
Unread 10-08-2007, 23:50
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
The laptop should then read the information and perform heavy math to find where the robot and the opponent are on the field. The laptop will then send pwm outputs back to the robot (within one program loop - would that be possible?).
Dan - 808
It is possible if you can get the RC to transmit and the PC to process and transmit back all in 26.2ms! It is probably possible but the whole system will probably lag behind 1 or 2 program loops. Since you send the sensor values in the current loop and receive processed data in the next one.
__________________
PLEASE TURN OF YOUR MONITORS WHEN NOT IN USE!
Start using the power saving features! Don't worry your computer won't die.
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
Interactive Debugger/Monitor duane Programming 10 11-10-2006 23:26
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04
FIRST Interactive Rural SupporT coreyk FIRST Interactive Rural SupporT 1 12-11-2003 10:31
Interactive Map - Out of Date Don Knight General Forum 0 19-09-2002 17:54
interactive strategy piconysm Rules/Strategy 5 11-01-2002 08:47


All times are GMT -5. The time now is 00:23.

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