Go to Post Honestly, I'd volunteer my team to be on that alliance. It'd be an honor to touch bumpers with those bots. - ttldomination [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-11-2006, 16:46
teh_pwnerer795 teh_pwnerer795 is offline
Registered User
AKA: !!Mitch!!
FRC #1392
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Ajax, Canada
Posts: 142
teh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really nice
Send a message via MSN to teh_pwnerer795 Send a message via Yahoo to teh_pwnerer795
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   Spotlight this post!  
Unread 13-11-2006, 20:14
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
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   Spotlight this post!  
Unread 14-11-2006, 02:42
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,281
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: SIMULATOR....not _SIMULATOR

Quote:
Originally Posted by chris31
RoboEmu2 works. Its been awhile tried it so i dont recall how much it can do.

http://www.robbayer.com/software.htm
I have never had much luck with that program, I recommend writing separate functions for every thing you need to do (keep it modular) then testing the functions with different variables. All a simulator will do is show you your variables, nothing you cant do with the controller you have and some printf's Simulators sound more useful than they are, no simulator will let you fine tune your code because the simulator would have to be written just for your robot. I would recommend writing functions, testing them on vex or the edu controller(or an old bot) that will keep you busy until you are far enough into build to get some sort of bot to program
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #4   Spotlight this post!  
Unread 14-11-2006, 20:42
teh_pwnerer795 teh_pwnerer795 is offline
Registered User
AKA: !!Mitch!!
FRC #1392
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Ajax, Canada
Posts: 142
teh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really nice
Send a message via MSN to teh_pwnerer795 Send a message via Yahoo to teh_pwnerer795
Re: SIMULATOR....not _SIMULATOR

Quote:
Originally Posted by chris31
RoboEmu2 works. Its been awhile tried it so i dont recall how much it can do.

http://www.robbayer.com/software.htm

YOU ARE GOD!! .. THX U SOO MUCH... i have been looking for this for ages.... finally my code is gonna work!! THNXS MAN
  #5   Spotlight this post!  
Unread 16-11-2006, 09:12
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
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.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #6   Spotlight this post!  
Unread 16-11-2006, 10:48
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Red face Re: SIMULATOR....not _SIMULATOR

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.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
  #7   Spotlight this post!  
Unread 20-01-2007, 17:04
brianafischer brianafischer is offline
Registered User
FRC #0503 (Frog Force)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Michigan
Posts: 17
brianafischer is on a distinguished road
Re: SIMULATOR....not _SIMULATOR

Quote:
Originally Posted by marccenter View Post
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.
I think the idea here is to debug small functions without chasing down a battery, cables, and RC. A "step-by-step" debugger is also extremely useful in educating new programmers...

Are there any documents on the MPLAB simulator capabilites?
  #8   Spotlight this post!  
Unread 20-01-2007, 22:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,855
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: SIMULATOR....not _SIMULATOR

Quote:
Originally Posted by brianafischer View Post
Are there any documents on the MPLAB simulator capabilites?
Chapter 13 in the MPLAB IDE User Guide

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
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #9   Spotlight this post!  
Unread 20-10-2007, 01:47
emersont49 emersont49 is offline
Mentor
#1098
 
Join Date: Sep 2004
Location: Fenton, Missouri
Posts: 34
emersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of light
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?
__________________
Tim Emerson
  #10   Spotlight this post!  
Unread 20-10-2007, 22:59
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
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.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #11   Spotlight this post!  
Unread 22-10-2007, 13:43
emersont49 emersont49 is offline
Mentor
#1098
 
Join Date: Sep 2004
Location: Fenton, Missouri
Posts: 34
emersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of light
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.
__________________
Tim Emerson
  #12   Spotlight this post!  
Unread 22-10-2007, 13:52
emersont49 emersont49 is offline
Mentor
#1098
 
Join Date: Sep 2004
Location: Fenton, Missouri
Posts: 34
emersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of lightemersont49 is a glorious beacon of light
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.
__________________
Tim Emerson
  #13   Spotlight this post!  
Unread 22-10-2007, 16:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,855
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 20:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi