MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / add_uart

Method add_uart

libraries/AP_RCProtocol/AP_RCProtocol.cpp:652–656  ·  view source on GitHub ↗

add a uart to decode */

Source from the content-addressed store, hash-verified

650 add a uart to decode
651 */
652void AP_RCProtocol::add_uart(AP_HAL::UARTDriver* uart)
653{
654 added.uart = uart;
655 added.uart->set_flow_control(AP_HAL::UARTDriver::FLOW_CONTROL_DISABLE);
656}
657
658// return true if a specific protocol is enabled
659bool AP_RCProtocol::protocol_enabled(rcprotocol_t protocol) const

Callers 2

initMethod · 0.80
rcin_initMethod · 0.80

Calls 1

set_flow_controlMethod · 0.45

Tested by

no test coverage detected