|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
can the 2001 2002 controllers (oi and rc) support autonomous modes like 2003 and 2004?
|
|
#2
|
||||
|
||||
|
Re: 2001 2002 in Automous
Quote:
|
|
#3
|
|||
|
|||
|
Re: 2001 2002 in Automous
Quote:
We sent in our 02 controller to IFI and they updated it to the 2003 specs just for practicing...obviously since thye are different setups in 03/04 you wouldnt be able to use it competition wise Last edited by D.J. Fluck : 14-05-2004 at 16:37. |
|
#4
|
|||||
|
|||||
|
Re: 2001 2002 in Automous
Theres only certain ones that can be updated. Somthing with your serial number said if you could update or not.
|
|
#5
|
|||||
|
|||||
|
Re: 2001 2002 in Autonomous
The robot controller will not enforce autonomous by neutralizing the operator interface inputs before your user program sees them. You are free, however, to ignore data from the OI.
You could set up a switch on the OI which would initiate autonomous operations. (I haven't tried it, but it is conceivable that pin 5 of the competition port may actually be passed in the PB_mode byte, so that you might be able to use the same competition port dongle you already have.... You do have one, don't you? ) |
|
#6
|
|||||
|
|||||
|
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: 2001 2002 in Autonomous
Quote:
|
|
#8
|
||||
|
||||
|
Re: 2001 2002 in Automous
Quote:
|
|
#9
|
|||||
|
|||||
|
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: 2001 2002 in Automous
Wouldn't it be possible to create a joystick trigger to start an "autonomous" mode. I think that something like this would be usable (its in C, its just for the basic idea):
Code:
/* Global Variables */
toggled = 0;
previous_toggle = 0;
clock_counter = 0;
/* Checks if the trigger is toggled */
void Default_Routine()
{
if (p1_sw_trig == 1 & previous_toggle == 0)
{
toggled = 1;
run_auto = 1;
}
previous_toggle = p1_sw_trig;
if (run_auto & clock_counter <= 225) /* ~15 seconds in slow loop */
{
clock_counter++;
/* Place "Autonomous" code here */
}
}
if (counter > 225)
counter = 0;
if (!run_auto)
{
/* Regular robot code here */
}
Code:
/* Global Variables */
toggled = 0;
previous_toggle = 0;
void Default_Routine()
{
/* Checks if the trigger is toggled */
if (p1_sw_trig == 1 & previous_toggle == 0)
{
toggled = 1;
run_auto = 1;
}
previous_toggle = p1_sw_trig;
if (p1_sw_trig == 1 & run_auto == 1)
{
toggled = 0;
run_auto = 0;
}
if (run_auto)
{
/* Place "Autonomous" code here */
}
}
if (!run_auto)
{
/* Regular robot code here */
}
|
|
#11
|
|||||
|
|||||
|
Re: 2001 2002 in Automous
Here I've made an attempt at re-writting this code in PBasic for the 2001-2002 controllers, here is the section of code, it SHOULD work, but I have no method of testing it right now. Also, for this to work, the variables "toggled" "prev_toggle" and "run_auto" must be created and initially set to 0.
Code:
IF (p1_aux = 1) & (prev_toggle = 0) THEN Toggler:
Toggler:
toggled = 1
run_auto = 1
prev_toggle = p1_aux
IF (p1_aux = 1) & (run_auto = 1) THEN StopAuto:
StopAuto:
toggled = 0
run_auto = 0
IF (run_auto = 1) THEN GoAuto:
driveR = (((2000 + p1_y + p1_x - 127) MIN 2000 MAX 2254) - 2000)
driveL = (((2000 + p1_y - p1_x + 127) MIN 2000 MAX 2254) - 2000)
GoAuto:
' Autonomous Code Goes Here
|
|
#12
|
||||
|
||||
|
Re: 2001 2002 in Automous
i think i remember somethign at the 2002 nationals where a robot won an award for autonomously grabbing the goals.....
|
|
#13
|
|||
|
|||
|
Re: 2001 2002 in Automous
I am not sure that you could cause autonomous mode to initiate through some signal to the competition port, but it would be possible to create an autonomous mode that ran off of the joystick. This is how i tested our autonomous.
I made my autonomous code simply a function. I called it once in the autonomous mode section, and once with an iff statement that ran only if p4_wheel was greater than a certain value. Here is an example. Code:
if (p4_wheel > 200)
My_Autonomous();
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2000, 2001, 2002, Videos | Boesing | General Forum | 28 | 07-02-2004 00:32 |
| Ramp Riot 2002, November 2, Updated Information | OZ_341 | Off-Season Events | 0 | 05-09-2002 02:40 |
| Please Post Pictures of 2002 & 2001 Batteries... | Joe Johnson | General Forum | 7 | 13-03-2002 15:49 |
| Follow-up to 2001 Nats Mars Launch | dlavery | Chit-Chat | 2 | 22-10-2001 20:45 |
| 2001 Scratch Awards | Andy Grady | General Forum | 12 | 04-10-2001 22:04 |