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

Go to the source code of this file.

Macros

#define SMOOTHCONTROL_TIMEBOMB   20.0f
 
#define SMOOTHCONTROL_DUTY_CYCLE   0.5f
 
#define SMOOTHCONTROL_PREDICTOR_SLOPE   0.8f
 
#define SMOOTHCONTROL_CHAMFER_START   0.75f
 

Typedefs

typedef struct
smoothcontrol_state_internal
smoothcontrol_state
 

Enumerations

enum  { SMOOTHCONTROL_NONE, SMOOTHCONTROL_NORMAL, SMOOTHCONTROL_LINEAR }
 

Functions

void smoothcontrol_initialize (smoothcontrol_state *state)
 
void smoothcontrol_update_dT (smoothcontrol_state state, float dT)
 
void smoothcontrol_next (smoothcontrol_state state)
 
void smoothcontrol_run (smoothcontrol_state state, uint8_t axis_num, float *new_signal)
 
void smoothcontrol_run_thrust (smoothcontrol_state state, float *new_signal)
 
void smoothcontrol_reinit (smoothcontrol_state state, uint8_t axis_num, float new_signal)
 
void smoothcontrol_reinit_thrust (smoothcontrol_state state, float new_signal)
 
void smoothcontrol_set_mode (smoothcontrol_state state, uint8_t axis_num, uint8_t mode, uint8_t duty_cycle)
 
bool * smoothcontrol_get_ringer (smoothcontrol_state state)
 

Macro Definition Documentation

#define SMOOTHCONTROL_CHAMFER_START   0.75f

Definition at line 15 of file smoothcontrol.h.

#define SMOOTHCONTROL_DUTY_CYCLE   0.5f

Definition at line 9 of file smoothcontrol.h.

#define SMOOTHCONTROL_PREDICTOR_SLOPE   0.8f

Definition at line 12 of file smoothcontrol.h.

#define SMOOTHCONTROL_TIMEBOMB   20.0f

Definition at line 6 of file smoothcontrol.h.

Typedef Documentation

Definition at line 29 of file smoothcontrol.h.

Enumeration Type Documentation

anonymous enum
Enumerator
SMOOTHCONTROL_NONE 
SMOOTHCONTROL_NORMAL 
SMOOTHCONTROL_LINEAR 

Definition at line 17 of file smoothcontrol.h.

Function Documentation

bool* smoothcontrol_get_ringer ( smoothcontrol_state  state)

Definition at line 198 of file smoothcontrol.c.

void smoothcontrol_initialize ( smoothcontrol_state state)

Definition at line 187 of file smoothcontrol.c.

void smoothcontrol_next ( smoothcontrol_state  state)

Definition at line 162 of file smoothcontrol.c.

void smoothcontrol_reinit ( smoothcontrol_state  state,
uint8_t  axis_num,
float  new_signal 
)

Definition at line 79 of file smoothcontrol.c.

void smoothcontrol_reinit_thrust ( smoothcontrol_state  state,
float  new_signal 
)

Definition at line 90 of file smoothcontrol.c.

void smoothcontrol_run ( smoothcontrol_state  state,
uint8_t  axis_num,
float *  new_signal 
)

Definition at line 104 of file smoothcontrol.c.

void smoothcontrol_run_thrust ( smoothcontrol_state  state,
float *  new_signal 
)

Definition at line 131 of file smoothcontrol.c.

void smoothcontrol_set_mode ( smoothcontrol_state  state,
uint8_t  axis_num,
uint8_t  mode,
uint8_t  duty_cycle 
)

Definition at line 96 of file smoothcontrol.c.

void smoothcontrol_update_dT ( smoothcontrol_state  state,
float  dT 
)

Definition at line 180 of file smoothcontrol.c.