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

Optional module to tune PID settings using R/C transmitter. More...

#include "openpilot.h"
#include <eventdispatcher.h>
#include "txpidsettings.h"
#include "manualcontrolcommand.h"
#include "stabilizationsettings.h"
#include "sensorsettings.h"
#include "vbarsettings.h"
#include "vtolpathfollowersettings.h"
#include "flightstatus.h"
#include "modulesettings.h"

Go to the source code of this file.

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_structtxpid_data
 

Detailed Description

Optional module to tune PID settings using R/C transmitter.

Author
dRonin, http://dronin.org Copyright (C) 2015-2016
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2011.
See Also
The GNU Public License (GPL) Version 3

Definition in file txpid.c.