|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#12
|
||||
|
||||
|
Re: Using an Operator Interface with the 2004 EDU RC wirelessly
Joe,
First are you using the 2003 EduRC with its internal Modem? The cabling goes between the two EduRC's to link them serially through the DB9 ports. The RC modem is not used. The user_routine.c file is specific about which joystick controls which pwm_out. ================================================== ========== pwm01 = pwm03 = Limit_Mix(2000 + OIData->p1_x + OIData->p1_y - 127); /* LEFT WHEELS */ pwm02 = pwm04 = Limit_Mix(2000 + OIData->p1_y - OIData->p1_x + 127); /* RIGHT WHEELS */ pwm01 = pwm03 = 255 - pwm01; /* reverse direction of left side */ /* ------ Other PWM OUTPUT Mapping (can be used for two-joystick drive ------*/ pwm05 = OIData->p3_x; /* limited by digital inputs 1 & 2 below */ pwm06 = OIData->p3_y; /* limited by digital inputs 3 & 4 below */ pwm07 = OIData->p4_x; pwm08 = OIData->p4_y; ================================================== === Plugging into pwm03 may be giving you the strange actions. The default program uses it with the mix routine. The syntax is also very picky for OIDATA->___. Also if the modem on the 2003 EduRC is not firmly seated into the motherboard you wil get erratic motion up to and including basic run and init errors. We have successfully adapted our 2003 code and can run our 2003 robot with this setup and our 2003 OI. Andy Brockway Team 716 Last edited by Andy Brockway : 05-12-2003 at 15:40. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My hints and guess on the Game in 2004! | Elgin Clock | Rumor Mill | 116 | 09-01-2004 13:30 |
| 2004 Championship Eligibility Criteria!!! | dez250 | General Forum | 214 | 28-12-2003 20:11 |
| 2004 will be 2 v 2 | Gadget470 | Rumor Mill | 20 | 25-10-2003 21:32 |
| 2004 Goals | Rich Kressly | FIRST Interactive Rural SupporT | 2 | 19-10-2003 18:09 |
| 2004 OCCRA Competition | Gadget470 | OCCRA | 2 | 11-06-2003 12:37 |