Browse Source

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

Signed-off-by: Andrew Tridgell <tridge@samba.org>
master
Adam M Rivera 13 years ago committed by Andrew Tridgell
parent
commit
e22da153ec
  1. 21
      libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde
  2. 1
      libraries/AP_Declination/examples/AP_Declination_test/Makefile

21
libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde

@ -0,0 +1,21 @@ @@ -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)
{
}

1
libraries/AP_Declination/examples/AP_Declination_test/Makefile

@ -0,0 +1 @@ @@ -0,0 +1 @@
include ../../../AP_Common/Arduino.mk
Loading…
Cancel
Save