mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
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:
parent
3f28184cb0
commit
1709403b87
@ -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)
|
||||
{
|
||||
}
|
@ -0,0 +1 @@
|
||||
include ../../../AP_Common/Arduino.mk
|
Loading…
Reference in New Issue
Block a user