|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
The sequence is as follows:
1. PC sends 1 arbitrary byte to tell the RC to get ready to receive. 2. RC sends back 1 byte and waits for 8 bytes in the receive buffer. 3. RC sends its data packet back. The baud rate matches the default that IFI uses, which is 19200, 8 bits, no parity, one stop bit. Write your PC client so that it reads the joystick and sends one byte to the RC. On the RC side, just grab the value in the recieve buffer whenever data is waiting and write it to a PWM output with a servo attached. Once you get that working add the rest. You have to make sure that the code running on the PC during step 2 is tight enough that the RC isn't sitting there waiting. The program is written in VB 6.0 with the MSCOMM control as the serial interface. I'll make the source available when I have time to clean it up. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How much planning goes into your robot? | Jnadke | General Forum | 41 | 29-01-2006 21:29 |
| White Paper Discuss: Using an Operator Interface with the 2004 EDU RC | CD47-Bot | Extra Discussion | 6 | 20-01-2004 21:11 |
| Some code in C that we may need if we are in trouble | Andrew Rudolph | Chit-Chat | 16 | 07-10-2003 21:34 |
| serious problem found - robot controller resets when jarred! | KenWittlief | Electrical | 23 | 19-03-2003 13:30 |
| Controlling a FIRST robot with a Lego RCX Controller? | archiver | 2001 | 5 | 24-06-2002 04:19 |