Go to Post Quality has nothing to do with desire – you can’t wish quality. Quality has nothing to do with time, or money, or the other guy’s attitude. Quality has everything to do with craftsmanship. - Jack Jones [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 06-03-2006, 15:17
mcktim mcktim is offline
Registered User
no team
 
Join Date: Jan 2006
Location: BOSTON
Posts: 2
mcktim is an unknown quantity at this point
simulator (now that the bot is shipped)

Is there any kind of simulator that one can use to try out some code now that the robots have shipped. (we still have the joysticks and operator controller)

Thanks
  #2   Spotlight this post!  
Unread 06-03-2006, 16:28
JJG13's Avatar
JJG13 JJG13 is offline
Yoda
AKA: Joshua Graffman
None #0180 (SPAM)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Martin County, Florida
Posts: 105
JJG13 has a spectacular aura aboutJJG13 has a spectacular aura aboutJJG13 has a spectacular aura about
Re: simulator (now that the bot is shipped)

You can make your own simulator. With some finagling, it is possible to get the code from your robot to comile on a PC. You can then feed the program inputs and print out the outputs to see if they match what you want. If you want to get fancy, you can make your own GUI to simulate your whole OI and display outputs. This is what I have done so I can (theoretically) test all code before placing it on the robot and have confidence that it works.

Here is a pic:
__________________
Behold the power of SPAM.
  #3   Spotlight this post!  
Unread 06-03-2006, 16:55
ewankoff's Avatar
ewankoff ewankoff is offline
hurdling=touch but don't spill
AKA: -=The WANK=-
FRC #1676 (PI-oneers)
Team Role: Mechanical
 
Join Date: Jan 2005
Rookie Year: 2005
Location: new jersey
Posts: 312
ewankoff is a name known to allewankoff is a name known to allewankoff is a name known to allewankoff is a name known to allewankoff is a name known to allewankoff is a name known to all
Re: simulator (now that the bot is shipped)

that looks like a pretty cool program could you post it here for the not so much programmers
__________________
2005- NJ rookie all-stars
2006- NJ judges award winners
NJ&Palmetto safety credit award winners
Palmetto finalists
2007-NJ Website award winners
NJ Motorola quality award and J&J sportsmanship award winner

Buckeye Motorola quality award winner
NJ #3 seed and semifinalist
2008NJ Chairman's Award


JOHNY FIVE is ALIVE!!
  #4   Spotlight this post!  
Unread 06-03-2006, 16:55
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: simulator (now that the bot is shipped)

Would you be so kind as to give us a hint on how to do that? Did you make that in visual basic? (i have that so i could do it!) If you posted that program entirely I would be forever in your debt. Thanks
-Dave
-564.first@gmail.com
__________________
Longwood's Digital Impact

  #5   Spotlight this post!  
Unread 06-03-2006, 17:21
kjhobin kjhobin is offline
Registered User
AKA: Keith Hobin
FRC #3314 (Mechanical Mustangs)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Philadelphia, PA
Posts: 144
kjhobin is a jewel in the roughkjhobin is a jewel in the roughkjhobin is a jewel in the rough
Send a message via AIM to kjhobin
Re: simulator (now that the bot is shipped)

this looks like a valuble resource for teams, could you please share your app?
__________________
Montclair Robotics FIRST Team 555 Alumni
FIRST Volenteer
  #6   Spotlight this post!  
Unread 06-03-2006, 19:29
lemoneasy lemoneasy is offline
Registered User
AKA: Evan Crawford
FRC #1334
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Oakville, Ontario
Posts: 21
lemoneasy is on a distinguished road
Re: simulator (now that the bot is shipped)

is that a real program JJG13? I think that just using last years board, for those who have it, is much simpler to run it through then emulating the whole control board system.

If that is a real simulator though, those are some interesting autonomous modes...
__________________
  #7   Spotlight this post!  
Unread 06-03-2006, 19:37
Jimbo5051's Avatar
Jimbo5051 Jimbo5051 is offline
Rep' da Goat
AKA: Jimmie Nickerson
FRC #0829 (The Digital Goats)
Team Role: Electrical
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Indiana
Posts: 87
Jimbo5051 is an unknown quantity at this point
Send a message via MSN to Jimbo5051
Re: simulator (now that the bot is shipped)

I think it is possible to use an older robot that you still have.
__________________
2007 St. Louis Regional Winners
  #8   Spotlight this post!  
Unread 07-03-2006, 14:42
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: simulator (now that the bot is shipped)

Quote:
Originally Posted by Jimbo5051
I think it is possible to use an older robot that you still have.
The point of having a simulator is to save time. If you have a usb to serial converter, uploading to the bot can take up to 5 minutes. I know this because I have to deal with it. With a simulator, you can test the progam and be already solving the problem in 5 minutes or less. It is not only easier, but it is a big time saver. If only I had a simulator...
__________________
Longwood's Digital Impact

  #9   Spotlight this post!  
Unread 08-03-2006, 18:45
JJG13's Avatar
JJG13 JJG13 is offline
Yoda
AKA: Joshua Graffman
None #0180 (SPAM)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Martin County, Florida
Posts: 105
JJG13 has a spectacular aura aboutJJG13 has a spectacular aura aboutJJG13 has a spectacular aura about
Re: simulator (now that the bot is shipped)

Quote:
Originally Posted by lkdjm
Would you be so kind as to give us a hint on how to do that? Did you make that in visual basic? (i have that so i could do it!) If you posted that program entirely I would be forever in your debt. Thanks
-Dave
-564.first@gmail.com

First I modified the code until it would actually compile on my computer. To do this I put #ifdef COMPILE_FOR_ROBOT... #endif around much of the hardware specific code in the .c files such as ifi_startup.c. I then created a new file called PCCompile.c to contain my version of all the functions I removed using that method as well as functions in FRC_library.lib. I chose to create the GUI in a different program since I HATE writing GUIs in straight C using the windows API and I did not want the gui code mixed with the robot code. To communicate between the robot code and the GUI I used the window's clipboard. Now here's the clever part. I used my versions of GetData and PutData in PCCompile.c to facilitate the communication between the two programs. The robotcode currently sends txdata, and the relay values via the clipboard in PutData and receives rxdata and the digital inputs in GetData. I had to do several other things to make the code work and I'll probably write a whitepaper to explain this in more detail once I get enough time.

Edit: Attached are the PCCompile.c and PCCompile.h files. This contains most of the code that makes the simulator work.
Attached Files
File Type: c PCCompile.c (4.3 KB, 48 views)
File Type: h PCCompile.h (2.2 KB, 33 views)
__________________
Behold the power of SPAM.

Last edited by JJG13 : 08-03-2006 at 18:51.
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
Bot repeated dying at Regionals. Can someone review the code? kaszeta Programming 6 06-03-2006 15:55
sphere bot Veselin Kolev Technical Discussion 36 03-03-2005 00:03
worst experience mike pawlak Chit-Chat 15 06-12-2004 07:04
Finally! Who has shipped? Tom Bottiglieri General Forum 49 29-02-2004 20:32
Multiple Regional Winners and a little jab JamesJones General Forum 32 10-04-2002 23:38


All times are GMT -5. The time now is 23:03.

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