Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/boards/opa_controller_fbw.h"
#include "modules/intermcu/intermcu.h"
#include "generated/airframe.h"
#include "mcu_periph/gpio.h"
#include "led.h"
Go to the source code of this file.
Macros | |
#define | OFF_TIMER 5*1 |
#define | MIN_ARMING_TRIG 1*1 |
Functions | |
void | opa_controller_init (void) |
void | opa_controller_periodic (void) |
Variables | |
static bool | arming_led = false |
bool | autopilot_motors_on |
bool | opa_controller_disarm = false |
Definition in file opa_controller_fbw.c.
#define MIN_ARMING_TRIG 1*1 |
Definition at line 33 of file opa_controller_fbw.c.
#define OFF_TIMER 5*1 |
Definition at line 32 of file opa_controller_fbw.c.
void opa_controller_init | ( | void | ) |
Definition at line 41 of file opa_controller_fbw.c.
References AP_PWR, AP_PWR_ON, AP_PWR_PIN, BAL_PWR, BAL_PWR_OFF, BAL_PWR_PIN, BTN_ARMING, BTN_ARMING_PIN, BTN_ESTOP, BTN_ESTOP_PIN, BTN_ON, BTN_ON_PIN, gpio_setup_input(), gpio_setup_output(), LED_OFF, MAIN_PWR, MAIN_PWR_OFF, and MAIN_PWR_PIN.
void opa_controller_periodic | ( | void | ) |
Definition at line 65 of file opa_controller_fbw.c.
References AP_PWR, AP_PWR_OFF, AP_PWR_PIN, arming_led, BAL_PWR, BAL_PWR_OFF, BAL_PWR_ON, BAL_PWR_PIN, BTN_ARMING, BTN_ARMING_PIN, BTN_ESTOP, BTN_ESTOP_PIN, BTN_ON, BTN_ON_PIN, gpio_get(), INTERMCU_CLR_CMD_STATUS, INTERMCU_CMD_DISARM, INTERMCU_GET_CMD_STATUS, LED_OFF, LED_ON, MAIN_PWR, MAIN_PWR_OFF, MAIN_PWR_ON, MAIN_PWR_PIN, MCU_PWR, MCU_PWR_OFF, MCU_PWR_PIN, MIN_ARMING_TRIG, OFF_TIMER, RADIO_CONTROL_POWER_OFF, RADIO_CONTROL_POWER_PIN, and RADIO_CONTROL_POWER_PORT.
|
static |
Definition at line 36 of file opa_controller_fbw.c.
Referenced by opa_controller_periodic().
|
extern |
bool opa_controller_disarm = false |
Definition at line 38 of file opa_controller_fbw.c.