Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
opa_controller_ap.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) C. De Wagter
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  */
27 #include "subsystems/intermcu.h"
28 #include "generated/airframe.h"
29 #include "mcu_periph/gpio.h"
30 
33 
34 void opa_controller_ap_disarm(bool action) {
37 }
38 
40  /* Enable Vision Power Control: Default Power Off */
43 
46 }
47 
49  /* Update the vision control power */
52  } else {
54  }
55 
56  /* Set the FTD Disarm state */
58 }
59 
#define VISION_PWR_PIN
Definition: opa_ap_1.0.h:38
#define VISION_PWR
Definition: opa_ap_1.0.h:37
#define VISION_PWR_ON
Definition: opa_ap_1.0.h:39
uint8_t cmd_status
Command status information that is transfered (intermcu_cmd_status)
Definition: intermcu.h:77
#define INTERMCU_SET_CMD_STATUS(_bit)
Definition: intermcu.h:65
struct intermcu_t intermcu
Definition: intermcu_ap.c:41
Some architecture independent helper functions for GPIOs.
void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
Definition: gpio_arch.c:33
bool opa_controller_vision_power
#define VISION_PWR_OFF
Definition: opa_ap_1.0.h:40
Rotorcraft Inter-MCU interface.
void opa_controller_periodic()
void opa_controller_init()
bool opa_controller_ftd_disarm
void opa_controller_ap_disarm(bool action)
Whether or not to dis-arm the FBW.
Definition: intermcu.h:59