RC input and PWM output for Navio2

This commit is contained in:
Hidenori
2016-07-01 23:08:17 +02:00
committed by Lorenz Meier
parent 54e14cd4b6
commit 76ee17e532
9 changed files with 890 additions and 1 deletions
+3
View File
@@ -863,6 +863,9 @@ Mavlink::get_free_tx_buf()
// No FIONWRITE on Linux
#if !defined(__PX4_LINUX) && !defined(__PX4_DARWIN)
(void) ioctl(_uart_fd, FIONWRITE, (unsigned long)&buf_free);
#else
//Linux cp210x does not support TIOCOUTQ
buf_free = 256;
#endif
if (get_flow_control_enabled() && buf_free < FLOW_CONTROL_DISABLE_THRESHOLD) {