mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 15:38:29 -04:00
3ae0082f52
Since the headers were re-ordered we also had to add inttypes.h to AP_Declination.h following a include-what-you-use approach.
22 lines
518 B
C++
22 lines
518 B
C++
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
#pragma once
|
|
|
|
#include <inttypes.h>
|
|
|
|
/*
|
|
* 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
|
|
*
|
|
*/
|
|
class AP_Declination
|
|
{
|
|
public:
|
|
static float get_declination(float lat, float lon);
|
|
private:
|
|
static int16_t get_lookup_value(uint8_t x, uint8_t y);
|
|
};
|