Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spektrum_soft_bind_fbw.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) Kevin van Hecke
3  *
4  * This file is part of paparazzi
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
28 #include "mcu.h"
30 #include "mcu_periph/sys_time_arch.h"
31 
32 #include "mcu_periph/gpio.h"
33 
35 {
36 
37 }
38 
40 {
41 
42  //power cycle the spektrum
44  sys_time_usleep(100000);
46 
47  //put to bind mode
48  RADIO_CONTROL_BIND_IMPL_FUNC(); //basically = radio_control_spektrum_try_bind()
49 
51 
52 }
#define RADIO_CONTROL_POWER_OFF
Definition: opa_ftd_1.0.h:152
#define RADIO_CONTROL_POWER
Definition: opa_ftd_1.0.h:149
Some architecture independent helper functions for GPIOs.
Rotorcraft Inter-MCU on FlyByWire.
#define RADIO_CONTROL_POWER_PIN
Definition: opa_ftd_1.0.h:150
void sys_time_usleep(uint32_t us)
sys_time_usleep(uint32_t us)
Definition: sys_time_arch.c:95
void spektrum_soft_bind_init(void)
#define RADIO_CONTROL_POWER_ON
Definition: opa_ftd_1.0.h:151
Arch independent mcu ( Micro Controller Unit ) utilities.
void received_spektrum_soft_bind(void)
void SpektrumUartInit(void)