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

xyControl API Implementation. More...

#include <avr/io.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/wdt.h>
#include <serial.h>
#include <spi.h>
#include <time.h>
#include <xmem.h>
#include <xycontrol.h>
#include <twi.h>
#include <adc.h>
#include <uartMenu.h>
#include <tasks.h>
#include <config.h>

Go to the source code of this file.

Functions

int uartoutput (char c, FILE *f)
 Method used to write to stdout and stderr. More...
 
int uartinput (FILE *f)
 Method used to read from stdin. More...
 
void xyInit (void)
 Initialize the xyControl Hardware. More...
 
void xyLedInternal (uint8_t v, volatile uint8_t *port, uint8_t pin)
 Internal LED Manipulation function. 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...
 

Variables

char PROGMEM helpText [] = "Print this Help"
 UART Menu Help Text. More...
 
char PROGMEM resetText [] = "Reset MCU"
 UART Menu Reset Text. More...
 
FILE inFile
 FILE for stdin. More...
 
FILE outFile
 FILE for stdout and stderr. More...
 

Detailed Description

xyControl API Implementation.

Definition in file xycontrol.c.