|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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
|
|||||
|
|||||
|
Re: How do you simulate autonomous mode?
It's defined in the manual, section 8 - The Robot:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |