Go to Post Yes there are a lot of problems that will pop up solving the problem, but thats the reason we do engineering for. - Arefin Bari [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 21-02-2007, 02:03
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
How do you simulate autonomous mode?

I still need to make a few changes to my autonomous code which may be a little tricky now that our robot has shipped but between now and the competition I would like to fine tune this code...

Is there a way to set up my MCC18 C compiler code and/or MPLAB to allow me to step through and simulate the autonomous code in MPLAB?

I recall in older versions of MPLAB (and at least for assembly code) that a person could get a sense of timing loop delays and I am wondering if this fature is also available with the C compiler code...

Please advise on how I can set this up...

Thank you
  #2   Spotlight this post!  
Unread 21-02-2007, 08:00
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,289
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: How do you simulate autonomous mode?

There is a built in simulator in MPLAB which will allow you to step through your code, but it's not that easy to use. You have to hard code in values for any inputs since it can't read them, because they're obviously not attached. I don't think it has an accurate time representation though.

Also, make sure that any code modification you do now is in your fix-it-windows. Now that ship date has passed, you are not allowed to modify code that will be used at competition aside from these windows.
__________________
FRC Team 498 (Peoria, AZ), Student: 2004 - 2007
FRC Team 498 (Peoria, AZ), Mentor: 2008 - 2011
FRC Team 167 (Iowa City, IA), Mentor: 2012 - 2014
FRC Team 2662 (Tolleson, AZ), Mentor: 2014 - Present
  #3   Spotlight this post!  
Unread 21-02-2007, 08:05
WaterFreak WaterFreak is offline
Registered User
FRC #0708 (Hardwired Fusion)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2002
Location: Warrington, PA
Posts: 29
WaterFreak is a splendid one to beholdWaterFreak is a splendid one to beholdWaterFreak is a splendid one to beholdWaterFreak is a splendid one to beholdWaterFreak is a splendid one to beholdWaterFreak is a splendid one to beholdWaterFreak is a splendid one to behold
Re: How do you simulate autonomous mode?

To the best of my knowledge, there is no way to "simulate" the code operation and have it run just on a PC.

If you had last year's FRC & OI, you could use that and run the code with a pretty simple setup.

BUT....keep in mind the rules regarding the "fix-it-window" and further work on the robot, as these rules DO include the software that runs on the robot. The rules to read are R19 & R22.
__________________
Thanks, Jim Orr
Senior Software Engineer - Motorola, Connected Home
Supporting Team 708 - Hardwired Fusion
  #4   Spotlight this post!  
Unread 21-02-2007, 09:21
Japper's Avatar
Japper Japper is offline
Registered User
FRC #3692 (RocknRobots)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Rutland Wisconsin
Posts: 147
Japper has a spectacular aura aboutJapper has a spectacular aura about
Re: How do you simulate autonomous mode?

What is a "fix-it" window?

Is that the 5 hour time that we have the Thursday before the competition to modify the exisiting designs and only to fix what is broken?

My autonomous mode is broken, can I fix it then?

Please advise

Thanks
  #5   Spotlight this post!  
Unread 21-02-2007, 09:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How do you simulate autonomous mode?

Quote:
Originally Posted by Japper View Post
What is a "fix-it" window?
It's defined in the manual, section 8 - The Robot:
Quote:
FIX-IT-WINDOWS – Two 5-hour work periods following the deadline for shipping the ROBOT, or following the close of a regional competition, in which ALL teams may manufacture parts in preparation for future competitions. During the FIX-IT WINDOWS, software for either the ROBOT or Operator Interface may be developed without restriction. The FIX-IT WINDOWS are limited to single continuous time periods with a maximum duration of 5 hours each. Part or all of the team may participate in the work conducted during this period. The FIX-IT WINDOWS can not be subdivided into multiple work sessions of lesser duration.
See also <R19> and <R22>.
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
How to Start Autonomous mode? jjbarrow Programming 14 16-01-2006 20:34
How do you turn on the Autonomous mode (to test)? Salik Syed Programming 6 03-03-2004 23:37
how can you use a gyro in autonomous mode magical hands Programming 3 02-01-2004 13:31
How is Autonomous Mode treating you? PyroPhin General Forum 19 20-02-2003 01:19
How to build an Autonomous Mode dongle Dave Flowerday Electrical 14 13-01-2003 09:19


All times are GMT -5. The time now is 07:30.

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