Hi folks,
I am reading telemetry from the autopilot through FT232 USB to Serial breakout board (debugging purposes) and I would like to use higher baudrates (e.g. 921600). On the autopilot side it is no problem (Lisa M 2.0), but the Ocaml serial interface does not recognize anything over 230400.
I added new record (B921600) to sw/lib/ocaml/
serial.ml and recompiled the GCS, but I got the following error:
OC
serial.mlFile "
serial.ml", line 1, characters 0-1:
Error: The implementation
serial.ml does not match the interface serial.cmi:
Type declarations do not match:
type speed =
B0
| B50
| B75
| B110
| B134
| B150
| B200
| B300
| B600
| B1200
| B1800
| B2400
| B4800
| B9600
| B19200
| B38400
| B57600
| B115200
| B230400
| B921600
is not included in
type speed =
B0
| B50
| B75
| B110
| B134
| B150
| B200
| B300
| B600
| B1200
| B1800
| B2400
| B4800
| B9600
| B19200
| B38400
| B57600
| B115200
| B230400
The field B921600 is only present in the first declaration.
make[1]: *** [serial.cmo] Error 2
make: *** [libpprz] Error 2
Do you know how to correctly set/recompile the paparazzi ocaml library (obviously the file serial.cmi has to be recompiled)?