Autodrone
Multi-Domain Vehicle
process_commands.h
Go to the documentation of this file.
1
10#ifndef __PROCESS_COMMANDS_H__
11#define __PROCESS_COMMANDS_H__
12
13/* Defines */
14#define DEADBAND 24
15#define DEADBAND_SLOPE (1000.0f/(1000-DEADBAND))
16
17/* Global Variables */
18extern uint8_t commandInDetent[3];
19extern uint8_t previousCommandInDetent[3];
20
21extern modes_e mode;
22
24
25extern semaphore_t armed;
26extern uint8_t armingTimer;
27extern uint8_t disarmingTimer;
28
29extern float rxCommands[8];
30
31void processCommands(void);
32
33#endif /* __FLIGHT_COMMAND_H__ */
volatile uint8_t semaphore_t
Definition: autodrone32.h:79
flightModes_e
Definition: autodrone32.h:123
modes_e
Definition: autodrone32.h:115
flightModes_e flightMode
Definition: process_commands.c:18
float rxCommands[8]
Definition: process_commands.c:23
void processCommands(void)
Processes receiver commands.
Definition: process_commands.c:30
semaphore_t armed
Definition: process_commands.c:19
uint8_t armingTimer
Definition: process_commands.c:20
uint8_t commandInDetent[3]
Definition: process_commands.c:14
uint8_t disarmingTimer
Definition: process_commands.c:21
modes_e mode
Definition: process_commands.c:17
uint8_t previousCommandInDetent[3]
Definition: process_commands.c:15