mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-26 08:22:43 +08:00
Add crossfire SBUS for OPA autopilot
This commit is contained in:
@@ -36,6 +36,8 @@ FBW_MODE_LED ?= none
|
||||
RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT ?= UART1
|
||||
RADIO_CONTROL_SPEKTRUM_SECONDARY_PORT ?= UART5
|
||||
|
||||
SBUS_PORT ?= UART5
|
||||
|
||||
MODEM_PORT ?= UART3
|
||||
MODEM_BAUD ?= B19200
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<define name="RADIO_CONTROL"/>
|
||||
<define name="RADIO_CONTROL_TYPE_SBUS"/>
|
||||
<define name="USE_$(SBUS_UART_UPPER)"/>
|
||||
<define name="USE_$(SBUS_UART_UPPER)_TX" value="FALSE"/>
|
||||
<define name="$(SBUS_UART_UPPER)_BAUD" value="B100000"/>
|
||||
<define name="SBUS_UART_DEV" value="$(SBUS_UART_LOWER)"/>
|
||||
<file name="radio_control.c" dir="subsystems"/>
|
||||
@@ -31,6 +32,7 @@
|
||||
<define name="RADIO_CONTROL"/>
|
||||
<define name="RADIO_CONTROL_TYPE_SBUS"/>
|
||||
<define name="USE_$(SBUS_UART_UPPER)"/>
|
||||
<define name="USE_$(SBUS_UART_UPPER)_TX" value="FALSE"/>
|
||||
<define name="$(SBUS_UART_UPPER)_BAUD" value="B100000"/>
|
||||
<define name="SBUS_UART_DEV" value="$(SBUS_UART_LOWER)"/>
|
||||
<file name="radio_control.c" dir="subsystems"/>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- (c) 2018 Freek van Tienen
|
||||
--
|
||||
-- This file is part of paparazzi.
|
||||
--
|
||||
-- paparazzi is free software; you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
-- the Free Software Foundation; either version 2, or (at your option)
|
||||
-- any later version.
|
||||
--
|
||||
-- paparazzi is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU General Public License
|
||||
-- along with paparazzi; see the file COPYING. If not, write to
|
||||
-- the Free Software Foundation, 59 Temple Place - Suite 330,
|
||||
-- Boston, MA 02111-1307, USA.
|
||||
-->
|
||||
<!DOCTYPE radio SYSTEM "radio.dtd">
|
||||
<radio name="Crossfire SBUS" data_min="900" data_max="2100" sync_min ="5000" sync_max ="15000" pulse_type="POSITIVE">
|
||||
<channel ctl="left_stick_vert" function="THROTTLE" min="1100" neutral="1100" max="1900" average="0"/>
|
||||
<channel ctl="right_stick_horiz" function="ROLL" min="1100" neutral="1500" max="1900" average="0"/>
|
||||
<channel ctl="right_stick_vert" function="PITCH" min="1100" neutral="1500" max="1900" average="0"/>
|
||||
<channel ctl="left_stick_horiz" function="YAW" min="1100" neutral="1500" max="1900" average="0"/>
|
||||
<channel ctl="aux0" function="MODE" min="1100" neutral="1500" max="1900" average="1"/>
|
||||
<channel ctl="aux1" function="AUX1" min="1100" neutral="1500" max="1900" average="1"/> <!-- TH_HOLD -->
|
||||
<channel ctl="aux2" function="AUX2" min="1100" neutral="1500" max="1900" average="1"/> <!-- FMODE -->
|
||||
<channel ctl="aux3" function="AUX3" min="1100" neutral="1500" max="1900" average="1"/> <!-- FBW_MODE -->
|
||||
<channel ctl="aux4" function="AUX4" min="1100" neutral="1500" max="1900" average="1"/>
|
||||
<channel ctl="aux5" function="AUX5" min="1100" neutral="1500" max="1900" average="1"/>
|
||||
<channel ctl="aux6" function="AUX6" min="1100" neutral="1500" max="1900" average="1"/>
|
||||
<channel ctl="aux7" function="AUX7" min="1100" neutral="1500" max="1900" average="1"/>
|
||||
</radio>
|
||||
Reference in New Issue
Block a user