#!/bin/sh
#
# PX4 FMUv4 specific board extras init
#------------------------------------------------------------------------------


# Pixracer: start MAVLink on Wifi (ESP8266 port). Except for the TealOne airframe.
if ! param compare SYS_AUTOSTART 4250
then
	mavlink start -r 20000 -b 921600 -d /dev/ttyS0
fi

# Run FrSky Telemetry on Pixracer on the FrSky port if not enabled already
if param compare TEL_FRSKY_CONFIG 0
then
	frsky_telemetry start -d /dev/ttyS6 -t 15
fi
