xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Macros | Functions | Variables
orientation.c File Reference

Orientation API Implementation. More...

#include <avr/io.h>
#include <stdint.h>
#include <math.h>
#include <xycontrol.h>
#include <error.h>
#include <gyro.h>
#include <acc.h>
#include <mag.h>
#include <tasks.h>
#include <time.h>
#include <orientation.h>
#include <kalman.h>
#include <complementary.h>
#include <config.h>

Go to the source code of this file.

Macros

#define TODEG(x)   ((x * 180) / M_PI)
 Convert Radians to Degrees. More...
 

Functions

Error orientationInit (void)
 Initializes the Orientation API. More...
 
Error orientationTask (void)
 Calculate the current orientation. More...
 
void zeroOrientation (void)
 Sets the current orientation to zero. More...
 

Variables

Angles orientation = {.pitch = 0, .roll = 0, .yaw = 0}
 Current Aircraft orientation. More...
 
Angles orientationError = {.pitch = 0, .roll = 0, .yaw = 0}
 Current Aircraft orientation offset. More...
 
Kalman pitchData
 Kalman-State for Pitch Angle. More...
 
Kalman rollData
 Kalman-State for Roll Angle. More...
 

Detailed Description

Orientation API Implementation.

Definition in file orientation.c.