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

xyControl API Header. More...

Go to the source code of this file.

Data Structures

struct  Vector3f
 The global 3-Dimensional Floating Point Vector. More...
 

Enumerations

enum  LED {
  LED_RED0 = 0, LED_RED1 = 1, LED_GREEN0 = 2, LED_GREEN1 = 3,
  LED_ALL = 4, LED_BITMAP = 5, LED_RED = 6, LED_GREEN = 7
}
 Methods of addressing the LEDs. More...
 
enum  LEDState { LED_OFF = 0, LED_ON = 1, LED_TOGGLE = 2 }
 Possible states of the LEDs. More...
 

Functions

void xyInit (void)
 Initialize the xyControl Hardware. More...
 
void xyLed (LED l, LEDState v)
 Set the LEDs. More...
 
double getVoltage (void)
 Calculate and return the Battery Voltage. More...
 
void xySelfReset (void)
 Use the Watchdog to reset yourself after 15ms. More...
 
int64_t map (int64_t value, int64_t oldMin, int64_t oldMax, int64_t newMin, int64_t newMax)
 Map an Integer from one range to another range. More...
 

Detailed Description

xyControl API Header.

Definition in file xycontrol.h.