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

Stabilize camera against the roll pitch and yaw of aircraft. More...

#include "openpilot.h"
#include <eventdispatcher.h>
#include "misc_math.h"
#include "physical_constants.h"
#include "pios_thread.h"
#include "pios_can.h"
#include "attitudeactual.h"
#include "camerastabsettings.h"
#include "cameradesired.h"
#include "homelocation.h"
#include "manualcontrolcommand.h"
#include "modulesettings.h"
#include "poilocation.h"
#include "positionactual.h"
#include "tabletinfo.h"

Go to the source code of this file.

Data Structures

struct  CameraStab_data
 

Macros

#define SAMPLE_PERIOD_MS   10
 
#define LOAD_DELAY   7000
 

Enumerations

enum  { ROLL, PITCH, YAW, MAX_AXES }
 

Functions

static void attitudeUpdated (const UAVObjEvent *ev, void *ctx, void *obj, int len)
 
static void settings_updated_cb (const UAVObjEvent *ev, void *ctx, void *obj, int len)
 
static void applyFF (uint8_t index, float dT_ms, float *attitude, CameraStabSettingsData *cameraStab)
 
static void gimbal_can_message ()
 
int32_t CameraStabInitialize (void)
 
int32_t CameraStabStart (void)
 

Variables

static struct CameraStab_datacsd
 

Detailed Description

Stabilize camera against the roll pitch and yaw of aircraft.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
Tau Labs, http://taulabs.org, Copyright (C) 2012-2014
dRonin, http://dronin.org Copyright (C) 2015
See Also
The GNU Public License (GPL) Version 3

Definition in file camerastab.c.