Go to Post Stupid programmer question: where does the tread go? - Joel J [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 22-01-2005, 23:00
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Lightbulb Team #1648's Robot Monitoring Program

Hey everybody,

I just finished the development on a little Robot Monitoring Program in VB.Net for our Robot and I'm kinda courious what you guys think about it and if anybody would maybe like to use it for their team.

What it basically does is interpreting Commands send with printf() to your Computer and showing the Content of Variables and so called Viewers which are taking the values of variables you select and showing them graphically in a little Box on the Screen.

For example if you got the Variables pwm07 and pwm08 you want to use these in the Program you just add this little Line somewhere in your Code to see it:

Code:
printf("snd Pwm_Out7=%02x Pwm_Out8=%02x\n", pwm07, pwm08);
If you don't want to send the Variable as a Hex String for some Reasons (like Performance, Signed Types, Strings, ...) you can also use these notations:

Code:
printf("snd SignedInt:%d\n", mySignedInt); // For Sending a Decimal Number
prinft("snd MyString$Hello_i_am_a_String\n");
The other thing thats kinda nice is that the Viewer Windows for the Program a easily expandable and not limited to a set amount of varibales (well maybe to some point with performance but that varies). So theoretically you could make a Viewer that simulates an entire Robot + Playingfield, but since this thing would need tons of variables thats might getting a little harsh on performance : ).

But whatever I added some Screenshots to give you guys a little better Idea about what I'm talking:


This is the Main Window, to the Right you see 2 boxes. One shows all avaible variables and one shows the ones your watching. Underneath it you see all Input from the Controler (besides the snd snd's which are hidden).



This shows the Viewer Selection Window where you can choose your Viewer and set up the Variables you want it to use.


This is another Shot of the Main Windows, but this time filled with Viewers. One is Watching the Pwm Outputs with a little Wheel Screen, one show the signal of an connected IR Sensor and the third one could be used to Display a Joystick Input (here it's just using the PWM's since I didn't had a Joystick connected)

So if anybody is interested, has questions or anything like that, just post here : ). And btw. I believe it's also possible to write these Viewer Classes in C# for those of you who don't like VB.Net : ) ...

Bye

Felix

Last edited by the_undefined : 22-01-2005 at 23:45.
  #2   Spotlight this post!  
Unread 23-01-2005, 16:13
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Re: Team #1648's Robot Monitoring Program

hmm can't belive that nobody seems to be interested in this ...?
  #3   Spotlight this post!  
Unread 23-01-2005, 16:17
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Team #1648's Robot Monitoring Program

No to shabby!! how many people did oyu have working on that? I find it pretty impressive for a rookie team.
__________________
1139 Alumni
  #4   Spotlight this post!  
Unread 23-01-2005, 16:32
CyberWolf_22's Avatar
CyberWolf_22 CyberWolf_22 is offline
Programming and Electrical Mentor
AKA: Allen Gregory
FRC #2587 (Afrobots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Houston, Texas
Posts: 227
CyberWolf_22 is just really niceCyberWolf_22 is just really niceCyberWolf_22 is just really niceCyberWolf_22 is just really nice
Re: Team #1648's Robot Monitoring Program

This seems vary cool will you be releasing this for download?
__________________
  #5   Spotlight this post!  
Unread 23-01-2005, 16:45
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Re: Team #1648's Robot Monitoring Program

Hey,

Thank you guys, I was really afraid that I wasted my time after nobody answerd to the thread ^^.

I was working on the Program for ~17-23 hours and one of the main intends is to publish it for the Community and include the Source Code so that everybody can develop and share their Viewer Windows which each other.
Right now I'm just testing it on different System Configurations to make sure nobody has problems running it and I'll probably upload it to my webspace at the begining of next week.

So if anybody has some Idea's what I should include into it till then just let me know and I'll see what I can do : ) ...

Bye

Felix
  #6   Spotlight this post!  
Unread 23-01-2005, 16:51
CyberWolf_22's Avatar
CyberWolf_22 CyberWolf_22 is offline
Programming and Electrical Mentor
AKA: Allen Gregory
FRC #2587 (Afrobots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Houston, Texas
Posts: 227
CyberWolf_22 is just really niceCyberWolf_22 is just really niceCyberWolf_22 is just really niceCyberWolf_22 is just really nice
Re: Team #1648's Robot Monitoring Program

I had an idea while looking at your screen shots. Have you thought of how to incorporate the CMUcam2's output in the the program. Maybe a spacial block that would show the object that the camera sees in an x,y plane that would be very helpful.
__________________
  #7   Spotlight this post!  
Unread 23-01-2005, 17:29
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Re: Team #1648's Robot Monitoring Program

Yeah I actually thought about this, but I didn't play around with the Camera yet , therefore I couldn't add that to the viewer till now.

If you could tell me how much Variables with what Values I'll get from the Camera and how you want it to look it'll be about 5 min for me to put that in : ) ...
  #8   Spotlight this post!  
Unread 23-01-2005, 17:59
Mike Ciance Mike Ciance is offline
Registered User
FRC #0025 (Raider Robotix)
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2002
Location: North Brunswick, NJ
Posts: 693
Mike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant futureMike Ciance has a brilliant future
Send a message via AIM to Mike Ciance
Re: Team #1648's Robot Monitoring Program

nice programming job. i bet this will be useful to many teams.

i like the idea of posting the source code. OPEN SOURCE RULES!!!
  #9   Spotlight this post!  
Unread 23-01-2005, 18:14
neilcooper neilcooper is offline
Registered User
#0302
 
Join Date: Jan 2005
Location: Lake Orion
Posts: 24
neilcooper will become famous soon enough
Re: Team #1648's Robot Monitoring Program

Dude that is awesome like CyberWolf_22 said when will it be available for d/l?
  #10   Spotlight this post!  
Unread 23-01-2005, 20:20
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Re: Team #1648's Robot Monitoring Program

Quote:
Originally Posted by neilcooper
Dude that is awesome like CyberWolf_22 said when will it be available for d/l?
Probably around Monday - Wednesday.

I may want to add something about performance: I'm running and Developing this thing on a Pentium 3 Laptop with 1.2 Ghz and 768 MB Ram. During my test's I didn't had to much problems with performance but I guess not everybody has the same Resources (not that mine are very fenzy but still).
Whatsoever, in order to make sure the Data on your Screen is Synchronized with the Program, it is only Interpreting Input if your PC is fast enough. That means if your Computer is to slow the program is starting to only interpret every 2nd, 3rd, usw. InputLine uintil it the Speed meets your Systems performance. The advantage of this is that the when the Screen Updates you can be sure the Information you see is Sync, but the disadvantage is your update frequenzy is going to sink with lower resources.
But there also is a cmd called "snda" which you can use if you want to make sure this InputLine never gets skipped for some reasons (because you might only send it at some events in your program and not in your main loop) so theoretically everybody should be able to use it : ).

Ok stay tuned, I'm just testing the thing on other System's and Clean Up my Source Code a little bit and add some comments here and there ...

Last edited by the_undefined : 23-01-2005 at 20:22.
  #11   Spotlight this post!  
Unread 23-01-2005, 20:51
Charly's Avatar
Charly Charly is offline
Registered User
AKA: Ricardo Martins
#0714 (Super Panthers)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Newark, New Jersey
Posts: 20
Charly is an unknown quantity at this point
Send a message via AIM to Charly
Re: Team #1648's Robot Monitoring Program

Wow dude... that looks sweet. I was actually thinking of writing something like that up as well but I've been so busy looking up and planning the electrical that I never had a chance. I'll probably direct someone on our team to this thread so that they maybe use it whenever you release it to the public. Great job and keep up the good work!
__________________
Team 714 Robotic Design Captain/Electrician
Winners of the 2004 New Jersey Regional Chairman's Award!
Competitions we'll be attending in 2005: NJ Regional, Florida Regional, Championships!
  #12   Spotlight this post!  
Unread 23-01-2005, 21:42
the_undefined's Avatar
the_undefined the_undefined is offline
German FES
AKA: Felix Geisendörfer
#1648 (Gearbox Gangstas)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Germany
Posts: 77
the_undefined has a spectacular aura aboutthe_undefined has a spectacular aura about
Re: Team #1648's Robot Monitoring Program

Quote:
Originally Posted by Charly
Wow dude... that looks sweet. I was actually thinking of writing something like that up as well but I've been so busy looking up and planning the electrical that I never had a chance. I'll probably direct someone on our team to this thread so that they maybe use it whenever you release it to the public. Great job and keep up the good work!
Thanks : ). Yeah I mean there is nothing really difficult to this besides that it takes a good amount of time doing it. The only challenge was working witht the Serial Port in VB.Net since the MSCom Control from VB6 is not avaible in there any more ... First I was trieng to use a class that was supposed to read the Com Ports but at a certain speed it started to loose packages and producing garbage. So finally I ended up using a refurbished Version of the VB6 Control that works in VB.Net ... o_O ^^
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
Question: What was the first FIRST competition you attended? JVN General Forum 182 25-01-2016 08:24
The Death of FIRST Anton Abaya General Forum 23 03-05-2006 17:18
Question of the Week!!! (9/3/04) Andy Grady General Forum 36 19-09-2004 20:13
Metro teens put robot to test Brandon Martus FIRST In the News... 1 24-03-2004 17:06
Shelf Life Of A Team Vin211 General Forum 21 07-01-2004 22:31


All times are GMT -5. The time now is 02:20.

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