|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Digital inputs in autonomous mode?
I've noticed that we have pwm and relay set to 127 and 0... but nothing set for digital, will digital inputs work during the autonomous?
I mean can I go ahead and say: if(!rc_dig_in12) { DestoryPlanetEarth(); } Also, one more question: I don't have a switch box built for the Competition port... yet... Is there a way I can enable the autonomous mode through a button on a joystick? Thank you for your help in advance! ![]() |
|
#2
|
|||
|
|||
|
Re: Digital inputs in autonomous mode?
Quote:
If you want to simulate autonomous mode using a joystick button, open main.c and change line 52 to: Code:
if (autonomous_mode || p2_sw_top) Code:
while (autonomous_mode || p2_sw_top) |
|
#3
|
||||
|
||||
|
Re: Digital inputs in autonomous mode?
Make sure to remove that before competition, you don't need your drivers accidentally enabling autonomous
![]() |
|
#4
|
|||
|
|||
|
Re: Digital inputs in autonomous mode?
If you dont have the box built for entering auto then you can just turn the theam number to 1 i think to enter auto mode.
|
|
#5
|
|||
|
|||
|
Re: Digital inputs in autonomous mode?
You could just take a small piece of wire, strip the ends, and connect the auto and ground pins. I forget which is which, but it is in the manual
|
|
#6
|
||||
|
||||
|
Re: Digital inputs in autonomous mode?
Quote:
|
|
#7
|
|||
|
|||
|
Re: Digital inputs in autonomous mode?
Because the competition port pins are hooked directly up to the PIC inside, IFI recommends (in one of their documents, forget which) that instead of hooking your wires directly to the port, you should insert a resistor on one leg. Sounds like good advice to me...
|
|
#8
|
||||
|
||||
|
Re: Digital inputs in autonomous mode?
Quote:
What would that do? We just have them connected. |
|
#9
|
|||
|
|||
|
Re: Digital inputs in autonomous mode?
If you accidentally touch the wrong pin, say a +5 to GND, it would prevent you from frying the chip. (for example)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a simple autonomous mode question | chippermonky | Programming | 3 | 18-02-2005 01:54 |
| Future of Autonomous Mode | FadyS. | Programming | 41 | 24-05-2004 19:45 |
| 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 |