NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
anglerate.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pid_config
 

Macros

#define PID_MAX_I   256
 
#define PID_MAX_D   512
 
#define PID_MAX_TOTAL_PID   1000
 
#define GYRO_I_MAX   256
 
#define YAW_P_LIMIT_MIN   100
 
#define YAW_P_LIMIT_MAX   500
 
#define DTERM_AVERAGE_COUNT   4
 

Enumerations

enum  pid_index_t {
  PIDROLL, PIDPITCH, PIDYAW, PIDALT,
  PIDPOS, PIDPOSR, PIDNAVR, PIDLEVEL,
  PIDMAG, PIDVEL, PID_ITEM_COUNT
}
 
enum  pid_controller_type_t { PID_CONTROLLER_MW23 = 0, PID_CONTROLLER_MWREWRITE, PID_CONTROLLER_LUX_FLOAT, PID_COUNT }
 

Functions

struct pid_config __attribute__ ((packed))
 

Variables

typedef __attribute__
 
uint8_t P8 [PID_ITEM_COUNT]
 P gains. More...
 
uint8_t I8 [PID_ITEM_COUNT]
 I gains. More...
 
uint8_t D8 [PID_ITEM_COUNT]
 D gains. More...
 
uint8_t pidController
 
uint16_t yaw_p_limit
 set P term limit (fixed value was 300) More...
 
uint16_t dterm_cut_hz
 dterm filtering More...
 

Variable Documentation

uint8_t D8[PID_ITEM_COUNT]

D gains.

uint16_t dterm_cut_hz

dterm filtering

uint8_t I8[PID_ITEM_COUNT]

I gains.

uint8_t P8[PID_ITEM_COUNT]

P gains.

uint8_t pidController
uint16_t yaw_p_limit

set P term limit (fixed value was 300)