Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/boards/opa_controller_fbw.h"
#include "subsystems/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, MAIN_PWR_PIN, opa_controller_ftd_disarm, opa_controller_vision_power, VISION_PWR, VISION_PWR_OFF, and VISION_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, intermcu_t::cmd_status, gpio_get(), intermcu, 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, opa_controller_ftd_disarm, opa_controller_vision_power, RADIO_CONTROL_POWER_OFF, RADIO_CONTROL_POWER_PIN, RADIO_CONTROL_POWER_PORT, VISION_PWR, VISION_PWR_OFF, VISION_PWR_ON, and VISION_PWR_PIN.
|
static |
Definition at line 36 of file opa_controller_fbw.c.
Referenced by opa_controller_periodic().
bool autopilot_motors_on |
Definition at line 64 of file intermcu_fbw.c.
Referenced by main_periodic().
bool opa_controller_disarm = false |
Definition at line 38 of file opa_controller_fbw.c.