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.