mavlink / c_uart_interface_example

Simple MAVLink to UART interface example for *nix systems
264 stars 257 forks source link

Update mavlink_serial.cpp #2

Closed ziyangli closed 9 years ago

ziyangli commented 9 years ago

corrected configuration for baudrate higher than 115200 tested in Ubuntu14.04

LorenzMeier commented 9 years ago

Could you please add an include guard / check that these two constants are defined? Have you checked their value? Because on the systems we tested these constants were non-standard but absolutely correct.

ziyangli commented 9 years ago

Indeed I should add an include check.

I have tested in a 64bit Ubuntu and a 32bit ARM and it seems they are defined like this.

./x86_64-linux-gnu/bits/termios.h:#define B460800 0010004