Quote:
|
Originally Posted by AMIRAM
Hi
im using the FRC tTL serial port to connect another controller to my robot
and i dont know how to read the serial Data from the other controller...
can Anyone help my with an example on how to read/write from the serial TTL port?
thanks
|
If you use the serial port driver at
http://kevin.org/frc, it's very easy to send and receive data from either of the serial ports. Have a look at the process_data_from_master_up() function in serial_port_diagnostics.zip/user_routines.c for an example that moves data from/to both serial ports.
-Kevin