Autodrone
Multi-Domain Vehicle
autodrone32.h File Reference

This file contains many of the global variables and settings for the drone. More...

Go to the source code of this file.

Data Structures

union  int16andUint8_t
 
union  int32andUint8_t
 
union  uint16andUint8_t
 
union  uint32andUint8_t
 
struct  sensors_t
 
struct  eepromConfig_t
 

Macros

#define PI   3.14159265358979f
 
#define TWO_PI   (2.0f * PI)
 
#define D2R   (PI / 180.0f)
 
#define R2D   (180.0f / PI)
 
#define KNOTS2MPS   0.51444444f
 
#define EARTH_RADIUS   6371000f
 
#define SQR(x)   ((x) * (x))
 
#define CUBE(x)   ((x) * (x) * (x))
 
#define ROLL   0
 
#define PITCH   1
 
#define YAW   2
 
#define THROTTLE   3
 
#define AUX1   4
 
#define AUX2   5
 
#define AUX3   6
 
#define AUX4   7
 
#define AUX5   8
 
#define AUX6   9
 
#define AUX7   10
 
#define AUX8   11
 
#define XAXIS   0
 
#define YAXIS   1
 
#define ZAXIS   2
 
#define MINCOMMAND   2000
 
#define MIDCOMMAND   3000
 
#define MAXCOMMAND   4000
 
#define NUMBER_OF_PIDS   6
 
#define ROLL_RATE_PID   0
 
#define PITCH_RATE_PID   1
 
#define YAW_RATE_PID   2
 
#define ROLL_ATT_PID   3
 
#define PITCH_ATT_PID   4
 
#define HEADING_PID   5
 

Typedefs

typedef volatile uint8_t semaphore_t
 
typedef struct sensors_t sensors_t
 
typedef struct eepromConfig_t eepromConfig_t
 

Enumerations

enum  modes_e { TRANS_FLIGHT , FLIGHT , TRANS_ROVER , ROVER }
 
enum  flightModes_e { RATE , ANGLE }
 
enum  { DLPF_256HZ , DLPF_188HZ , DLPF_98HZ , DLPF_42HZ }
 
enum  crcFlags { CRC_HistoryBad = 1 }
 

Variables

sensors_t sensors
 
eepromConfig_t eepromConfig
 

Detailed Description

This file contains many of the global variables and settings for the drone.

Author
Jeremy Wolfe
Date
23 FEB 2022

Macro Definition Documentation

◆ AUX1

#define AUX1   4

◆ AUX2

#define AUX2   5

◆ AUX3

#define AUX3   6

◆ AUX4

#define AUX4   7

◆ AUX5

#define AUX5   8

◆ AUX6

#define AUX6   9

◆ AUX7

#define AUX7   10

◆ AUX8

#define AUX8   11

◆ CUBE

#define CUBE (   x)    ((x) * (x) * (x))

◆ D2R

#define D2R   (PI / 180.0f)

◆ EARTH_RADIUS

#define EARTH_RADIUS   6371000f

◆ HEADING_PID

#define HEADING_PID   5

◆ KNOTS2MPS

#define KNOTS2MPS   0.51444444f

◆ MAXCOMMAND

#define MAXCOMMAND   4000

◆ MIDCOMMAND

#define MIDCOMMAND   3000

◆ MINCOMMAND

#define MINCOMMAND   2000

◆ NUMBER_OF_PIDS

#define NUMBER_OF_PIDS   6

◆ PI

#define PI   3.14159265358979f

◆ PITCH

#define PITCH   1

◆ PITCH_ATT_PID

#define PITCH_ATT_PID   4

◆ PITCH_RATE_PID

#define PITCH_RATE_PID   1

◆ R2D

#define R2D   (180.0f / PI)

◆ ROLL

#define ROLL   0

◆ ROLL_ATT_PID

#define ROLL_ATT_PID   3

◆ ROLL_RATE_PID

#define ROLL_RATE_PID   0

◆ SQR

#define SQR (   x)    ((x) * (x))

◆ THROTTLE

#define THROTTLE   3

◆ TWO_PI

#define TWO_PI   (2.0f * PI)

◆ XAXIS

#define XAXIS   0

◆ YAW

#define YAW   2

◆ YAW_RATE_PID

#define YAW_RATE_PID   2

◆ YAXIS

#define YAXIS   1

◆ ZAXIS

#define ZAXIS   2

Typedef Documentation

◆ eepromConfig_t

◆ semaphore_t

typedef volatile uint8_t semaphore_t

◆ sensors_t

typedef struct sensors_t sensors_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DLPF_256HZ 
DLPF_188HZ 
DLPF_98HZ 
DLPF_42HZ 

◆ crcFlags

enum crcFlags
Enumerator
CRC_HistoryBad 

◆ flightModes_e

Enumerator
RATE 
ANGLE 

◆ modes_e

enum modes_e
Enumerator
TRANS_FLIGHT 
FLIGHT 
TRANS_ROVER 
ROVER 

Variable Documentation

◆ eepromConfig

eepromConfig_t eepromConfig
extern

◆ sensors

sensors_t sensors
extern