Add auto detection of APM and baudrate