paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Add serial baudrate option to telemetry downlink


From: Stephen Dwyer
Subject: Re: [Paparazzi-devel] Add serial baudrate option to telemetry downlink
Date: Tue, 4 Jun 2013 21:52:03 -0600

Hi Michal,

You need to change the type declaration in both serial.ml AND serial.mli. Compiles for me on master when I change both.

Hopefully that helps.

Thanks,
-Stephen Dwyer


On Tue, Jun 4, 2013 at 8:30 PM, Michal Podhradsky <address@hidden> wrote:
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.ml
File "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)?

Thanks!
Michal

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]