dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
manualcontrol.c File Reference

ManualControl module. Handles safety R/C link and flight mode. More...

#include "openpilot.h"
#include "pios_thread.h"
#include "pios_rcvr.h"
#include "control.h"
#include "failsafe_control.h"
#include "tablet_control.h"
#include "transmitter_control.h"
#include "geofence_control.h"
#include "flightstatus.h"
#include "manualcontrolcommand.h"
#include "manualcontrolsettings.h"
#include "systemalarms.h"

Go to the source code of this file.

Macros

#define STACK_SIZE_BYTES   1200
 
#define TASK_PRIORITY   PIOS_THREAD_PRIO_HIGHEST
 
#define UPDATE_PERIOD_MS   20
 
#define GO_STATE(x)
 

Functions

static void manualControlTask (void *parameters)
 
static
FlightStatusControlSourceOptions 
control_source_select ()
 control_source_select Determine which sub-module to use for the main control source of the flight controller. More...
 
bool ok_to_arm (void)
 Determine if the aircraft is safe to arm based on alarms. More...
 
int32_t ManualControlStart ()
 
int32_t ManualControlInitialize ()
 
 MODULE_HIPRI_INITCALL (ManualControlInitialize, ManualControlStart)
 

Variables

static struct pios_thread * taskHandle
 
bool vehicle_is_armed = false
 

Detailed Description

ManualControl module. Handles safety R/C link and flight mode.

Author
Tau Labs, http://taulabs.org, Copyright (C) 2013-2016
See Also
The GNU Public License (GPL) Version 3

Definition in file manualcontrol.c.

Macro Definition Documentation

#define GO_STATE (   x)
Value:
do { \
arm_state = (x); \
arm_state_time = (now); \
} while (0)