|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Where to insert code Autonomous mode
I have already made the code i want to put in to my robot for autonomous mode, but I am not sure where to insert it whether in Robot.c or somewhere else the code just uses some of the basic functions(CMD_Drive, CMD_Stop, etc...) can anyone tell me where i should insert this? Thanks
|
|
#2
|
|||
|
|||
|
Re: Where to insert code Autonomous mode
In user_routines_fast.c , there is a function called Autonoumous mode. Look for the comment "//" where it says "insert code here"
|
|
#3
|
|||||
|
|||||
|
Re: Where to insert code Autonomous mode
Commands.h is where the scripting stuff goes. I recomend reading the whitepaper Autonomous Scripting for details as to how exactly the script works.
|
|
#4
|
||||
|
||||
|
Re: Where to insert code Autonomous mode
What exactly do we put into user_routines_fast so that the robot.c file will go through and execute the command.h file. I am pretty new to this kind of thing, so... any help will be appreciated. I have two encoders and a gyro, and I need to know where I have to change things to get everything to run smoothly. Thanks.
|
|
#5
|
||||
|
||||
|
Re: Where to insert code Autonomous mode
Quote:
See this post: http://www.chiefdelphi.com/forums/sh...ad.php?t=34815 |
|
#6
|
|||
|
|||
|
Re: Where to insert code Autonomous mode
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A little question about the autonomous mode | Anton | Programming | 4 | 18-01-2005 14:08 |
| Anybody have a code for an autonomous mode to go to the 50 point bar???? and... | chaoticprout | Programming | 9 | 06-11-2004 12:22 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |