Go to Post Thank you for Recycle Rush, the largest FLL game ever. - Dan Petrovic [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 13-06-2007, 21:53
Edmund Harfmann Edmund Harfmann is offline
Registered User
no team
 
Join Date: Aug 2006
Location: Lafayette IN
Posts: 7
Edmund Harfmann will become famous soon enough
MSRS interface for the VEX controller

After much nashing of teeth, I've finally completed an interface for the VEX controller. The source code is located at http://www.codeplex.com/VexMsrs. For those using the IFI controller, it should be easy enough to modify the sources to support it.

No, this code is NOT FIRST competion compatible. (I'm not using the robot for competition, but for education outreach.)

You (obviously) need a PC.

You need to get something that will use the second serial port on the controller. (I used the BlueSMIrF from Spark Fun Electronics http://www.sparkfun.com/commerce/pro...roducts_id=582) You can modify the code to use the first serial port if you want, just make sure to disable all of the printf diagnostics.

You need a programmer cable. (I've got the hex file included in the zip file if you don't want to compile the file itself.)

Hopefully, some of the readers here are working with the robots outside of competition after the season is over. Good luck to all.

Enjoy

Ed

PS - What do you do after the seaon is over?
  #2   Spotlight this post!  
Unread 13-06-2007, 22:09
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: MSRS interface for the VEX controller

Quote:
Originally Posted by Edmund Harfmann View Post
PS - What do you do after the seaon is over?
Work on robots, mostly...

Thanks for the cool stuff. Once I get up my courage, I'll actually try it. I am afraid of bricking the controller - these things happen to me - so it'll take a while.

Don
__________________

I am N2IRZ - What's your callsign?
  #3   Spotlight this post!  
Unread 13-06-2007, 23:04
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: MSRS interface for the VEX controller

Quote:
Originally Posted by Edmund Harfmann View Post
PS - What do you do after the seaon is over?
Make a MSRS interface for an FRC robot! You just got it done before me!
__________________
Eric Haskins KC9JVH
  #4   Spotlight this post!  
Unread 14-06-2007, 08:44
Edmund Harfmann Edmund Harfmann is offline
Registered User
no team
 
Join Date: Aug 2006
Location: Lafayette IN
Posts: 7
Edmund Harfmann will become famous soon enough
Re: MSRS interface for the VEX controller

I don't have an FRC controller, so I don't feel comfortable writting it and releasing without being able to test it. The sources are there for whoever wants to extend it. (I'll be happy to suggest where to look for changes needed.)

Ed
  #5   Spotlight this post!  
Unread 26-06-2007, 14:35
SomeoneKnows SomeoneKnows is offline
SomeoneKnows
AKA: Vince Thompson
FRC #1752 (Team Tonka)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: KC Missouri
Posts: 19
SomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of light
Re: MSRS interface for the VEX controller

Quote:
Originally Posted by Edmund Harfmann View Post
After much nashing of teeth, I've finally completed an interface for the VEX controller. The source code is located at http://www.codeplex.com/VexMsrs.
I am glad to see your initiative and work toward support using Microsoft Robotics Studio. I don't have any of the supported robotics devices already supported with MSRS so I'm hoping to see what can be done with my VEX.

I'm having some trouble getting some of the code to work and have posted to the discussions at http://www.codeplex.com/VexMsrs.
  #6   Spotlight this post!  
Unread 26-06-2007, 19:14
Edmund Harfmann Edmund Harfmann is offline
Registered User
no team
 
Join Date: Aug 2006
Location: Lafayette IN
Posts: 7
Edmund Harfmann will become famous soon enough
Re: MSRS interface for the VEX controller

Replies posted.

I usually try to check in the evening after work.
  #7   Spotlight this post!  
Unread 27-06-2007, 18:34
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: MSRS interface for the VEX controller

Speaking of MSRS, I need a little help here seeing what's the diffrence between the VS to the RS.
__________________
TEAM 2230 ZECHARIA'S ANGELS

2009 Microsoft Israel FRC Regional Winners!
2009 Microsoft Israel FRC Regional Chairman's Award Winners!!!
---------------------------------
2008 Microsoft Israel FRC Regional semi-finalist.
2008 Microsoft Israel FRC Regional Delphi's "Driving Tommorow's Technology" Award winner.
2008 Robot Driver
---------------------------------
2007 GM/Technion Israel FRC Regional semi-Finalist.
2007 GM/Technion Israel FRC Regional Xerox Creativity Award winner.
2007 Robot Driver.
  #8   Spotlight this post!  
Unread 27-06-2007, 18:44
SomeoneKnows SomeoneKnows is offline
SomeoneKnows
AKA: Vince Thompson
FRC #1752 (Team Tonka)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: KC Missouri
Posts: 19
SomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of light
Re: MSRS interface for the VEX controller

Quote:
Originally Posted by Bomberofdoom View Post
Speaking of MSRS, I need a little help here seeing what's the diffrence between the VS to the RS.
Your question may be a casualty of overactive text messaging on cell phones but I'm having trouble understanding what you're asking.

Are you asking what's the difference between Visual Studio and Robotics Studio?
  #9   Spotlight this post!  
Unread 28-06-2007, 00:30
SomeoneKnows SomeoneKnows is offline
SomeoneKnows
AKA: Vince Thompson
FRC #1752 (Team Tonka)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: KC Missouri
Posts: 19
SomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of lightSomeoneKnows is a glorious beacon of light
Re: MSRS interface for the VEX controller

Quote:
Originally Posted by SomeoneKnows View Post
Are you asking what's the difference between Visual Studio and Robotics Studio?
Visual Studio is an environment for programming languages like Visual Basic, C++, and C#. There is a free version of Microsoft's Visual Studio products at: http://msdn.microsoft.com/vstudio/express/

Microsoft Robotics Studio (MSRS) is something quite different. It does provide a rich environment for experimenting with robotics. That product's developer center is located at: http://msdn2.microsoft.com/en-us/robotics/default.aspx You can also download Robotics Studio free of charge from their web site.

MSRS is dependent on support from programming languages like those provided by Visual Studio.

If you can get a copy of the Spring 2007 issue of Robot Magazine http://www.botmag.com/ they have an article about MSRS using the Parallax Boe-Bot robot.

For those with the Lego Mindstorm Robots, MSRS already provides support for these devices. I don't have either the Mindstorms or the BOE-Bot otherwise I would be starting MSRS experiments with them.
  #10   Spotlight this post!  
Unread 28-06-2007, 05:20
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: MSRS interface for the VEX controller

Well, I was speaking more of the diffrences with the programming area in each studio, but I just looked into the MSRS Visual Programming and it seems that the programming part of it has lots of resemblence to EasyC programming (which frankly, I prefer the raw code type). What interests me if this Visual Programming is really like EasyC and is meant to create some program for robots? and if there's some way to change the code into raw code?
__________________
TEAM 2230 ZECHARIA'S ANGELS

2009 Microsoft Israel FRC Regional Winners!
2009 Microsoft Israel FRC Regional Chairman's Award Winners!!!
---------------------------------
2008 Microsoft Israel FRC Regional semi-finalist.
2008 Microsoft Israel FRC Regional Delphi's "Driving Tommorow's Technology" Award winner.
2008 Robot Driver
---------------------------------
2007 GM/Technion Israel FRC Regional semi-Finalist.
2007 GM/Technion Israel FRC Regional Xerox Creativity Award winner.
2007 Robot Driver.
  #11   Spotlight this post!  
Unread 28-06-2007, 13:06
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: MSRS interface for the VEX controller

If you look closely at the MSRS docs you'll find that it is very apparent that MS intends for C# to be the language of choice for MSRS. Not that other languages can not be used but, there are many aspects of C# that compile better with the communications model. So if you don't like VPL, C# would be the preferred choice. I believe Visual Studio Express C# is available still for a free download. On 1 of the blogs a MS employee goes into detail why they prefer users not to use C++ for development.
I've Looked at MSRS and I'm beginning to see some of the advantages to the model they've cHoosen. I believe now that MSRS could fit in with Vex and the First FRC with some hardware mods.
  #12   Spotlight this post!  
Unread 29-06-2007, 09:26
Edmund Harfmann Edmund Harfmann is offline
Registered User
no team
 
Join Date: Aug 2006
Location: Lafayette IN
Posts: 7
Edmund Harfmann will become famous soon enough
Re: MSRS interface for the VEX controller

I agree that C# is the language of choice for services. (Look at the samples.) I think that VPL will be the 'language of choice' for higher level code.

C# provides the 'fast code' of the service and therefore makes sense to use at the service level. (Is C/C++ better? Yes, but the margin is not big enough any more to fuss about.) The downside of this is that for the higher level, you get lost in the details.

VPL provides the string-together ability that simplifies development (just like EasyC). You don't have to think about posting to ports. You don't have to think about what the interface is. .... It lets you concentrate on the higher level. That's also its downfall. You cannot describe trivial operations without having a service to do the work. (Why is there a math service? So that VPL can do math?!?!?)

I've been trying to build a Mars Rover in C# and it has been a pain. I'm about to scrap it and try again in VPL. It makes sense. (Now if I only had time to get back to it.) I've been getting lost in the details at this high level. I need to backup and try again with the right language. I’ve delayed using VPL since the 1.0 version for my machine crashed a lot. It was too frustrating. Maybe the 1.5 version is more stable.

There are a ton of details to get lost in at the high level. Using the environment properly requires that you know when to break tasks into smaller tasks so that the work can be split by CCR to the appropriate threads. (Big tasks = bad idea) Am I an expert? No, but I've glimpsed the power of the environment. Am I a Microsoft advocate? No, I just like a paycheck. I’ve tilted at too many windmills.

I REALLY hope that IFI will have a Bluetooth/Zigbee/whatever released addition to make this easier. (I personally would prefer a Zigbee device. Lots of range. :>)

Ed
  #13   Spotlight this post!  
Unread 29-06-2007, 20:38
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: MSRS interface for the VEX controller

Many of you seem to be forgetting, or not even know, that VB.net, J#(Java in .net), C#, A#(Ada in .net), and others, all are capable of running MSRS services. C# just happens to be used more commonly in the samples.

I know some people call the non-C-like languages(VB) "baby" languages, but they all have the same abilities, have no(or very very very little) performance difference, and some(VB) are simpler to read/understand than C syntaxes. I would not be surprised if many, or even most, people would choose VB.net as their programming language, just because it is so much easier to read for new programmers.

For those of you who don't think the other .net languages are equal to VB, just show me one thing C# can do that VB can't.

EDIT:The downloads for C#, VB, and J#, along with SQL Server express, are available here.
__________________
Eric Haskins KC9JVH
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
Programming The CMUcam for the Vex controller 987HighRoller Programming 3 24-06-2006 15:27
What Victor for VEX Controller? Chris_Elston Electrical 5 25-04-2006 21:00
IR on the Vex controller? jgarbers FIRST Tech Challenge 0 18-04-2006 14:07
Making the VEX OI (controller) beep? ForgottenSalad FIRST Tech Challenge 2 27-03-2006 08:50
communication between the robot controller and the interface Shlomi32 General Forum 4 05-12-2005 16:53


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

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