2013-05-29 20:54:53 -03:00
|
|
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2015-12-23 09:25:34 -04:00
|
|
|
#pragma once
|
2012-03-10 15:38:45 -04:00
|
|
|
|
2015-12-23 09:25:34 -04:00
|
|
|
#include <inttypes.h>
|
2012-03-10 15:38:45 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Adam M Rivera
|
|
|
|
* With direction from: Andrew Tridgell, Jason Short, Justin Beech
|
|
|
|
*
|
|
|
|
* Adapted from: http://www.societyofrobots.com/robotforum/index.php?topic=11855.0
|
|
|
|
* Scott Ferguson
|
|
|
|
* scottfromscott@gmail.com
|
|
|
|
*
|
2012-08-17 03:19:39 -03:00
|
|
|
*/
|
2012-03-10 15:38:45 -04:00
|
|
|
class AP_Declination
|
|
|
|
{
|
|
|
|
public:
|
2012-08-17 03:19:39 -03:00
|
|
|
static float get_declination(float lat, float lon);
|
2012-03-15 00:10:01 -03:00
|
|
|
private:
|
2012-08-17 03:19:39 -03:00
|
|
|
static int16_t get_lookup_value(uint8_t x, uint8_t y);
|
2012-03-10 15:38:45 -04:00
|
|
|
};
|