dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
smoothcontrol.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <math.h>
#include "openpilot.h"
#include "pios.h"
#include "misc_math.h"
#include "smoothcontrol.h"

Go to the source code of this file.

Data Structures

struct  smoothcontrol_axis_state
 
struct  smoothcontrol_state_internal
 

Functions

static void smoothcontrol_update (smoothcontrol_state state, struct smoothcontrol_axis_state *axis, const 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)
 
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_next (smoothcontrol_state state)
 
void smoothcontrol_update_dT (smoothcontrol_state state, float dT)
 
void smoothcontrol_initialize (smoothcontrol_state *state)
 
bool * smoothcontrol_get_ringer (smoothcontrol_state state)
 

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.

static void smoothcontrol_update ( smoothcontrol_state  state,
struct smoothcontrol_axis_state axis,
const float  new_signal 
)
static

Definition at line 49 of file smoothcontrol.c.

void smoothcontrol_update_dT ( smoothcontrol_state  state,
float  dT 
)

Definition at line 180 of file smoothcontrol.c.