![]() |
We put the Initialization Constants, Input & Output Declarations, Initialization Inputs & Outputs, Master uP Initialization
Only in Slot Zero executed one time, then never again Edit/ Until you reset at least........ |
We had some similar problems with our robot last year and this year, and we weren't using multiple slots at that point.
Suddenly random things would turn on and off. At the Chatsworth Scrimmage, our light turned off for 5 seconds and the robot just sat there, then started going again. After Chatsworth, we changed the Operator Interface Radio and the problem has not reoccurred. |
Yeah, the variables are fine.
I just fixed it, let me tell you about it: I call it CopyCat. We have a toggle switch wired to P3_top. When this switch is turned on, the program begins going through each autonomous block and recording any input data from the OI to the EEPROM. Right now, it just copies the Drive system. Next, the switch is flipped off, and WALLAH! Instant Autonomous Mode. When automode is once again triggered, it goes through the auto memory blocks and plays out the stored data, and returns to the main loop upon completion, or automode shutting off. Now, I know that it isn't perfect, but it is awesome! It's a great way for drivers to write auto mode, and, based on however many variables you record, you could add in code for multiple recordings. I'm going to post a ZIP up in the White Papers section including the source, a RoboEmu Project file (Just try it, it's cool!) and the Multi-Slot Presentation, for those who still might not understand it. Anyway, It's still pretty sloppy. My original version was done on our eduBot, and it only recorded about 4 seconds of drive data. This version records (I think) 20 + seconds. I used a combo of the RC, EDU, and Multi-Slot codes. Enjoy! |
Ok.. here's a nice way you can solve all your multi-slot problems.. use scratch pad memory! it doesn't change between slots, and you get extra memory as well!
http://www.chiefdelphi.com/forums/sh...threadid=19308 Oh.. and as for the copycat proggie.. we have one as well, we can store 8 15-second programs.. and we have 4 line trackers and 4 dead reckoning as well.. hehe. I'll probably release my code after all our competitions.. |
| All times are GMT -5. The time now is 12:44. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi