![]() |
RoboEmu2(code simulator)--now with C!
Well, its only been a year since I said I was going to do this, but hey, better late than never, right?
Anyways, it's finally here (in at least pre-beta form): RoboEmu2 -- now with C! I've tested it with the default code and everything seems to work fine, but given that I haven't been involved with a team for 2 years now, that's about the only code I've tested it with. Thus, as always, I'm asking for everybody's help: please download RoboEmu2 and try it with your code. If it doesn't work, please email me your code and any warnings/errors you get. In any event: enjoy, comment, criticize, etc: www.robbayer.com/re2.shtml Edit: for those of you who don't know, RoboEmu is an emulator for the control system. Back in the days of PBASIC it was used as a way to quickly test new code and algorithms without needing an actual robot to play with. This new version marks the transition from PBASIC to C, thus supporting the new controllers. |
Re: RoboEmu2(code simulator)--now with C!
Ert, i get the error "Failed to start because QTMTNC321.DLL was not found"
I googled the dll and couldnt find it anywhere. |
Re: RoboEmu2(code simulator)--now with C!
Quote:
|
Re: RoboEmu2(code simulator)--now with C!
Quote:
Appears to be some library that is part of "Qt" which sounds like a tool that you might have used to compile this program. |
Re: RoboEmu2(code simulator)--now with C!
I compiled it from source on Fedora Core 3 against whatever version of kdelibs-devel (read: qt-devel) I happen to have, and it works just fine with the default code provided in the tarball.
When I get a moment or two, I'll make the necessary changes to our existing code and see what happens then. |
Re: RoboEmu2(code simulator)--now with C!
My bad... new version now uploaded. Grab it from the website.
-Rob |
Re: RoboEmu2(code simulator)--now with C!
MiniGW doesn't understand the "short long" type that C18 accepts (24 bit signed integer). I will use long's temporarily, but I wonder if you could add something to the batch file that will convert types because incorrect variable sizes can definitley screw up code.
|
Re: RoboEmu2(code simulator)--now with C!
Quote:
|
Re: RoboEmu2(code simulator)--now with C!
cool stuff....
|
Re: RoboEmu2(code simulator)--now with C!
What kind of magic is behind this, namely how does it work?
|
Re: RoboEmu2(code simulator)--now with C!
Quote:
|
Re: RoboEmu2(code simulator)--now with C!
I get the errors
Code:
|
Re: RoboEmu2(code simulator)--now with C!
Quote:
If that doesn't work, send me an email with your user_routines.c and I'll try to see what's wrong. -Rob |
Re: RoboEmu2(code simulator)--now with C!
Quote:
As for how this thing works, it's actually quite simple. You compile your code into native Windows/Linux/etc as a dynamically loadable module (DLL's in Windows speak). This library file contains a few RE2-specific functions (from recore.c) that the main program uses to interface with your code. The driver program simply calls these functions once ever 26ms (for the slow-loop function) or whenever your computer has free cycles (for the fast-loop function). The majority of the work here is being done by gcc, so anything that's ANSI-C should compile. Whether or not it works as expected depends on whether you're using a PIC-specific feature (timers, interrupts, etc). -Rob |
Re: RoboEmu2(code simulator)--now with C!
wow, that was awesome, thanks a lot
|
| All times are GMT -5. The time now is 18:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi