|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
FIRST 2008 Robot Emulator
Rob Bayer's robot emulator has quirked my interest... Therefore, I am currently planning to make a robot emulator for post-2005 code! It will be written in Java, so when all is done, hopefully it will run in both Windows and Linux (as long as the code is compiled to .dll or .so on the appropriate OS). Just like Rob Bayer's emulator, I hope to minimize the amount of code to change within the original robot code so it can be compiled with and without the "code hack" files with no modifications necessary.
I have no clue if this emulator will work with EasyC or not since my team uses MPLab. I am absolutely certain that it will not be able to parse .ecp files. So it will not work with EasyC unless somebody figures out how to make EasyC export files to .c and .h so it can be compiled elsewhere and make it work in the end. I don't expect this program to be finished in a few months, however. I hope to be done before the robot build or at least within a few weeks of the kickoff. I am planning to make the GUI first and then implement the actual emulating background. I should be able to release a GUI only version within the next month. Hopefully, most of the "hack code" Rob Bayer made will work with the post-2005 controller code. I know it doesn't work at the moment without modifications due to the new serial port for the camera. It would be nice to know what kind of implementation I need to fake the serial port feedback and what else changed with the post-2005 controller. A few special features that might be in the final program (if I figure out how to do them all): extensive documentation for adaptability (such as an extra method put in the main that is not in the default code), special variable watch window, and camera emulator. But the main emulation will be finished before these features are added. I will consider other special features if suggested, but I doubt I will have the time for anything too extensive. Besides, this program will be obsoleted next year anyway when the controller system is changed, so my main focus will be to make it work with this year's code the way Rob's did with 2004 code. Last edited by ham90mack : 06-10-2007 at 16:28. Reason: add EasyC statement |
|
#2
|
||||
|
||||
|
FIRST 2008 Robot Emulator Progress
CURRENT PROGRESS as of 10/5/07
Version: Unreleased. DOWNLOAD (link will be posted when it is avaliable) Last edited by ham90mack : 05-10-2007 at 21:45. Reason: update |
|
#3
|
|||||
|
|||||
|
Re: FIRST 2008 Robot Emulator
Would your emulator have to take the .c and .h files?
If it instead ran on the compiled .asm files it would probably work with both EasyC and MPLab. Although I am far from certain, the compiled files from EasyC must be similar if not the same as MPLab's because both work in the robot. By the way, great project. I hope it works out. |
|
#4
|
||||
|
||||
|
Re: FIRST 2008 Robot Emulator
Well, if the .asm files could be combined with the .c and .h files required for the hack and compiled into a .dll, then it might work. My emulator will work similar to Rob Bayer's design, except it will work with post-2005 code. Check out his emulator and see if you can figure out how to combine it with EasyC code. If nobody can figure out how to do this, I can't help.
In a PM with me, SamSofa330 said: Quote:
I wonder how many teams use MPLab verses EasyC verses WPILib... |
|
#5
|
|||
|
|||
|
Re: FIRST 2008 Robot Emulator
It's all the same stuff.. EasyC is just an abstraction layer for WPILib, and WPILib is just an abstraction layer for the low level stuff. Either way, it all boils down to the communication between the uP and mP, and what all of your low level outputs and inputs are.
|
|
#6
|
||||
|
||||
|
Re: FIRST 2008 Robot Emulator
Quote:
|
|
#7
|
||||
|
||||
|
Re: FIRST 2008 Robot Emulator
Well, it seems that I am not allowed to edit my status post above... I didn't know that...
I have added the menu bar to the GUI now. Once I get the switches, analog inputs, and the PWM outputs added to the GUI, I should probably be able to release it for everyone to see. Hopefully this will be done some time next week, assuming nothing huge gets in the way. I have been thinking of another feature: input recording and playback. This way, the input could be recorded step by step and tested on the robot code many times. It might be a bit easier to test with something like this since the inputs will always be the same, but the outputs would change with the changes in the code. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FIRST 2008 Scholarships? | Pavan Dave | General Forum | 3 | 06-11-2007 16:54 |
| **FIRST EMAIL**/Get Ready for 2008 FRC Event Registration! | Mark McLeod | FIRST E-Mail Blast Archive | 0 | 12-09-2007 14:35 |
| FIRST Team 1444 Site Design for 2008 | Compnerd | Website Design/Showcase | 13 | 25-03-2007 23:55 |
| Code Emulator | Mike | Programming | 2 | 05-04-2005 03:15 |
| robot control emulator for default or other program | CharlieWilken | Programming | 26 | 24-02-2002 02:36 |