Thread: Code Simulator
View Single Post
  #2   Spotlight this post!  
Unread 29-05-2005, 20:17
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Code Simulator

Quote:
Originally Posted by MikeWasHere05
I've been playing with the idea of creating a simulator for next year, where you would input code and an onscreen diagram would show you the values of sensors, location on the field, etc. How would I be able to simulate what code would do in a real world environment? I can understand making a scripting simulator (DRIVE_10_FEET kinda thing), but I can't comprehend how to take arrays/structs/variables in a piece of code and relate it to how a robot would react.

Thanks for the help guys, if/when I finish this I'm going to definetly post it here =)

EDIT: Anybody have an idea on what language I should use? I'm thinking of C# so I can have an excuse to learn it ( ), but maybe VisualBasic for ease of use...
The way I'm thinking of doing it for URC is to load the HEX files (which are in INTEL HEX) and running it on a PIC18 simulator/VM, which was hooked up to a hardware simulator (including another PIC18 VM running the master firmware) and the OI (probably just written in C).

As for your description, you would want a real-time C preproccessor, plus a VM. (Or just a C scripting engine).

Either way, I would like to here how it goes.