You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
869 B
34 lines
869 B
#!/bin/sh |
|
# |
|
# PX4 FMUv4 specific board defaults |
|
#------------------------------------------------------------------------------ |
|
|
|
|
|
if [ $AUTOCNF = yes ] |
|
then |
|
# Disable safety switch by default |
|
param set-default CBRK_IO_SAFETY 22027 |
|
|
|
# start MAVLink on Wifi (ESP8266 port). Except for the TealOne airframe. |
|
if ! param compare SYS_AUTOSTART 4250 |
|
then |
|
param set-default MAV_2_CONFIG 301 |
|
param set-default MAV_2_RATE 20000 |
|
param set-default SER_WIFI_BAUD 921600 |
|
fi |
|
fi |
|
|
|
if param compare SER_WIFI_BAUD 1 |
|
then |
|
# Transitional support: The Wifi port has not been configured by the user, |
|
# configure it for MAVLink via the ESP8266 Wifi module. Except for the TealOne airframe. |
|
if ! param compare SYS_AUTOSTART 4250 |
|
then |
|
param set-default MAV_2_CONFIG 301 |
|
param set-default MAV_2_RATE 20000 |
|
param set-default SER_WIFI_BAUD 921600 |
|
fi |
|
fi |
|
|
|
safety_button start |
|
|
|
|