Autodrone
Multi-Domain Vehicle
process_commands.h File Reference

This file processes the receiver inputs to ensure they are in the correct ranges for further computations. More...

Go to the source code of this file.

Macros

#define DEADBAND   24
 
#define DEADBAND_SLOPE   (1000.0f/(1000-DEADBAND))
 

Functions

void processCommands (void)
 Processes receiver commands. More...
 

Variables

uint8_t commandInDetent [3]
 
uint8_t previousCommandInDetent [3]
 
modes_e mode
 
flightModes_e flightMode
 
semaphore_t armed
 
uint8_t armingTimer
 
uint8_t disarmingTimer
 
float rxCommands [8]
 

Detailed Description

This file processes the receiver inputs to ensure they are in the correct ranges for further computations.

Author
Jeremy Wolfe
Date
07 MAR 2022

Macro Definition Documentation

◆ DEADBAND

#define DEADBAND   24

◆ DEADBAND_SLOPE

#define DEADBAND_SLOPE   (1000.0f/(1000-DEADBAND))

Function Documentation

◆ processCommands()

void processCommands ( void  )

Processes receiver commands.

Returns
Void.

Variable Documentation

◆ armed

semaphore_t armed
extern

◆ armingTimer

uint8_t armingTimer
extern

◆ commandInDetent

uint8_t commandInDetent[3]
extern

◆ disarmingTimer

uint8_t disarmingTimer
extern

◆ flightMode

flightModes_e flightMode
extern

◆ mode

modes_e mode
extern

◆ previousCommandInDetent

uint8_t previousCommandInDetent[3]
extern

◆ rxCommands

float rxCommands[8]
extern