|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
At the kickoff, they were saying that you could use real english to program in autonomous mode, but there is nothing supporting that statement. They said you could do this:Quote:
|
|
#2
|
|||||
|
|||||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
http://www.chiefdelphi.com/forums/showthread.php?t=32870 The scripting code is located at http://kevin.org/frc/ |
|
#3
|
|||
|
|||
|
I looked at all of that, and then I went to www.kevin.org/frc and there was nothing about using the plain english to run the controller. Please help. I will look at the link you gave me again, hoping for an answer.
|
|
#4
|
||||
|
||||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
Code:
struct commands command_list[] = {
/* Command parm 1 parm 2 parm 3 */
/*
{CMD_GYRO_BIAS, 0, 0, 0},
{CMD_WAIT_FOR_BUMP, 100, 0, 0},
{CMD_WAIT, 1000, 0, 0},
{CMD_TURN, -1571L, 100, 0},
{CMD_WAIT_FOR_BUMP, 100, 0, 0},
{CMD_WAIT, 1000, 0, 0},
{CMD_TURN, 1571, 100, 0},
{CMD_JUMP, 1, 0, 0},
{NULL, 0, 0, 0}
*/
{CMD_GYRO_BIAS, 0, 0, 0},
{CMD_WAIT_FOR_BUMP, 100, 0, 0},
{CMD_WAIT, 1000, 0, 0},
{CMD_DRIVE, 1500, 0, 0},
{CMD_WAIT, 4000, 0, 0},
{CMD_TURN, (-1500), 50, 0},
{CMD_WAIT, 3000, 0, 0},
{CMD_DRIVE, 2400, 0, 0},
{CMD_WAIT, 4000, 0, 0},
{CMD_TURN, (PI_MRAD / 2), 50, 0},
{CMD_WAIT, 4000, 0, 0},
{CMD_DRIVE, 2400, 0, 0},
{CMD_WAIT, 4000, 0, 0},
{CMD_TURN, (-1500), 50, 0},
{CMD_WAIT, 1000, 0, 0},
{CMD_DRIVE, 0, 0, 0},
{CMD_KEEP_HEADING, 240000, 100, 0},
{CMD_JUMP, 1, 0, 0},
{NULL, 0, 0, 0}
};
. |
|
#5
|
|||||
|
|||||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
Quote:
{CMD_DRIVE, 1000, 0, 0}, {CMD_TURN, (PI_MRAD / 2), 50, 0}, {CMD_DRIVE, 1000, 0, 0}, {NULL, 0, 0, 0} in commands.h |
|
#6
|
|||
|
|||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
So if i want to use that in autonomous, do i just write that in the autonomous part in user_routines_fast.c? |
|
#7
|
|||
|
|||
|
Re: Using REAL ENGLISH in autonomous mode???
Thank you both for your help. What I did not understand is where these commands were being called from. I have one last question: With gyro.c/h and commands.c/h, how does it know which PWMs your motors are on? Yes, your robot could get bumped, but if your drive motors are on PWM3 and PWM4 and it is trying to control PWM1 and PWM2, how would it know?
|
|
#8
|
|||
|
|||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
|
|
#9
|
|||||
|
|||||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
|
|
#10
|
||||
|
||||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
-Kevin |
|
#11
|
|||
|
|||
|
NICE!
If only those really worked, I would love it. Just somehow hook a Cordless phone to a PWM in and PWM out, and have it actually call Pizza Hut and order a pizza. I wonder if they accept digital robot money But I am still wondering how it knows which PWM to control. It is set in the program, but where? Unless it is COMPLETELY different from EDU Programming, as that is all I really have experience with, as this is my rookie year. |
|
#12
|
||||
|
||||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
/* Define your pwm values for the left and right wheels. */ #define wheel_l pwm01 #define wheel_r pwm03 -Kevin |
|
#13
|
|||
|
|||
|
Re: Using REAL ENGLISH in autonomous mode???
Thanks
|
|
#14
|
||||
|
||||
|
Re: Using REAL ENGLISH in autonomous mode???
So....your supposed to be able to just type in user_routines_fast.c :
{CMD_DRIVE, 1000, 0, 0}, {CMD_TURN, (PI_MRAD / 2), 50, 0}, {CMD_DRIVE, 1000, 0, 0}, {NULL, 0, 0, 0 and your auto works?? |
|
#15
|
|||||
|
|||||
|
Re: Using REAL ENGLISH in autonomous mode???
Quote:
The sample script is in commands.h. There is no commands.c. |
![]() |
| 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 |
| Wolrd Triple Play Autonomous Mode (WAM) Standards | Natchez | General Forum | 3 | 11-01-2005 15:52 |
| Future of Autonomous Mode | FadyS. | Programming | 41 | 24-05-2004 19:45 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |