Added AP_Declination test sketch. I will be improving the test sketch soon.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
Adam M Rivera 2012-03-10 13:51:35 -06:00 committed by Andrew Tridgell
parent 3f28184cb0
commit 1709403b87
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
// AVR runtime
#include <avr/io.h>
#include <avr/eeprom.h>
#include <avr/pgmspace.h>
#include <math.h>
#include <FastSerial.h>
#include <AP_Declination.h>
FastSerialPort(Serial, 0);
void setup(void)
{
float declination = AP_Declination::get_declination(43.064191, -87.997498);
Serial.printf("declination: %d", declination);
}
void loop(void)
{
}

View File

@ -0,0 +1 @@
include ../../../AP_Common/Arduino.mk