|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
SIMULATOR....not _SIMULATOR
Hey guys.. ok.. YES ... i have an old robot... and old parts BUT.. im not going to build it alll over again .. to simulate the one at the school.... takes too long.. and its pointless... i was wondering if any one has a standalone program! that runns the .hex file and simulates the robot.. or joysticks... either or.. if u could let me noe
that be great![]() |
|
#2
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
RoboEmu2 works. Its been awhile tried it so i dont recall how much it can do.
http://www.robbayer.com/software.htm |
|
#3
|
||||
|
||||
|
Re: SIMULATOR....not _SIMULATOR
Quote:
|
|
#4
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
Quote:
YOU ARE GOD!! .. THX U SOO MUCH... i have been looking for this for ages.... finally my code is gonna work!! ![]() ![]() ![]() THNXS MAN |
|
#5
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
Take a look at the simulator in the MPLAB IDE. Compile with _SIMULATOR. You can step through code, view the assembly language generated by the compile, change the state of inputs and variables and then step through the execution line by line. It has limitations, but is great for checking whether you logic is correct.
|
|
#6
|
||||
|
||||
|
Perhaps your question has already been answered, but there is another
way to build "a simulator " using simple switches and servo motors that I used in 2004 to test my logic. A standard servo motor can be plugged in to the output port of the robot controller. This motor becomes synonomous with any robot motor you have in operating on your robot. Next, make yourself or get hold off one of those autonomous cables to help debug autonomous mode. I then plugged in some Joysticks to the system, downloaded by code and watched the motors, ie servo motors, respond to joystick commands. Add yourself some switches by plugging directly into the robot controller and you have yourself a "robot simulator" good for simple software checkout testing. This is very similiar to the approach we use at work, Oops, that's why FIRST is so much fun, havings students learn what they will see in their future workplace. |
|
#7
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
Quote:
Are there any documents on the MPLAB simulator capabilites? |
|
#8
|
|||||
|
|||||
|
Re: SIMULATOR....not _SIMULATOR
Quote:
The Microchip online seminar (or should we say sim-inar): http://techtrain.microchip.com/webse...aspx?Active=61 and web Getting Started: http://www.microchip.com/stellent/id...ram=en 022520 |
|
#9
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
I read the IFI documentation on the Simulator.
When I add _SIMULATOR in th C18 build options it is not there when I look again. What am I doing wrong, I am using MPLAB 7.2 and ver 2.4 of the compiler Any Ideas? |
|
#10
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
What do you mean by look again?
Do you mean? Open and close the build options dialog OR open and close the entire workspace. If you do not save the workspace after adding the macro definition then it will not be there when you reopen the workspace. |
|
#11
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
I was opening and closing the build options. I will try saving the workspace to see if that works.
Thanks for that bit of insight. |
|
#12
|
|||
|
|||
|
Re: SIMULATOR....not _SIMULATOR
I tried the following:
Open build options Select MPLAB C18 Add _SIMULATOR to macro definitions (a small window opens, I define _SIMULATOR and click OK) _SIMULATOR shows in the macro defs box I can click apply or OK. I've done both. I save the workspace. Close it and then open it and the _SIMULATOR definition is no longer there. |
|
#13
|
|||||
|
|||||
|
Re: SIMULATOR....not _SIMULATOR
Do you have "Use Alternate Settings" checked on that same pop-up?
That would prevent the _SIMULATOR macro from being saved. If you are using Alternate Settings then you can add the macro directly in the alternate settings text box to the end of your set of options by typing: -D_SIMULATOR |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RC Simulator? | seg9585 | Programming | 2 | 03-02-2006 12:15 |
| Purpose of the _SIMULATOR macro? | lasindi | Programming | 1 | 14-01-2006 19:07 |
| FIRST Simulator | AIBob | Programming | 2 | 10-02-2005 19:02 |
| Controller Simulator | Jay | Programming | 14 | 03-04-2002 02:04 |
| Game Simulator | Jason Rudolph | Rules/Strategy | 15 | 07-03-2002 11:30 |