debugged mavlink_serial.cpp example