From e22da153ece26f89c3c0f985383444d6068f906f Mon Sep 17 00:00:00 2001 From: Adam M Rivera Date: Sat, 10 Mar 2012 13:51:35 -0600 Subject: [PATCH] Added AP_Declination test sketch. I will be improving the test sketch soon. Signed-off-by: Andrew Tridgell --- .../AP_Declination_test.pde | 21 +++++++++++++++++++ .../examples/AP_Declination_test/Makefile | 1 + 2 files changed, 22 insertions(+) create mode 100644 libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde create mode 100644 libraries/AP_Declination/examples/AP_Declination_test/Makefile diff --git a/libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde b/libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde new file mode 100644 index 0000000000..baf0b7ee02 --- /dev/null +++ b/libraries/AP_Declination/examples/AP_Declination_test/AP_Declination_test.pde @@ -0,0 +1,21 @@ +/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- + +// AVR runtime +#include +#include +#include +#include +#include +#include + +FastSerialPort(Serial, 0); + +void setup(void) +{ + float declination = AP_Declination::get_declination(43.064191, -87.997498); + Serial.printf("declination: %d", declination); +} + +void loop(void) +{ +} \ No newline at end of file diff --git a/libraries/AP_Declination/examples/AP_Declination_test/Makefile b/libraries/AP_Declination/examples/AP_Declination_test/Makefile new file mode 100644 index 0000000000..d1f40fd90f --- /dev/null +++ b/libraries/AP_Declination/examples/AP_Declination_test/Makefile @@ -0,0 +1 @@ +include ../../../AP_Common/Arduino.mk