dRonin
adbada4
dRonin firmware
|
Files | |
file | txpid.c |
Optional module to tune PID settings using R/C transmitter. | |
Data Structures | |
struct | txpid_struct |
Macros | |
#define | SAMPLE_PERIOD_MS 200 |
#define | TELEMETRY_UPDATE_PERIOD_MS 0 |
Functions | |
static void | updatePIDs (const UAVObjEvent *ev, void *ctx, void *obj, int len) |
static bool | update (float *var, float val) |
static float | scale (float val, float inMin, float inMax, float outMin, float outMax) |
int32_t | TxPIDInitialize (void) |
static int32_t | TxPIDStart (void) |
MODULE_INITCALL (TxPIDInitialize, TxPIDStart) | |
Variables | |
static struct txpid_struct * | txpid_data |
uint8_t | update |
#define SAMPLE_PERIOD_MS 200 |
Output object: StabilizationSettings
This module will periodically update values of stabilization PID settings depending on configured input control channels. New values of stabilization settings are not saved to flash, but updated in RAM. It is expected that the module will be enabled only for tuning. When desired values are found, they can be read via GCS and saved permanently. Then this module should be disabled again.
UAVObjects are automatically generated by the UAVObjectGenerator from the object definition XML file.
MODULE_INITCALL | ( | TxPIDInitialize | , |
TxPIDStart | |||
) |
|
static |
int32_t TxPIDInitialize | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
static bool update |
Updates var using val if needed.
Definition at line 98 of file msp_messages.h.