Skip to content
Snippets Groups Projects
Commit 782c1aaa authored by Adam M Rivera's avatar Adam M Rivera Committed by Andrew Tridgell
Browse files

AP_Declination: Implemented Delta Encoding and Run-Length Encoding. Added...

AP_Declination: Implemented Delta Encoding and Run-Length Encoding. Added method to traverse the compressed array and return the lookup value based on the same lat_index/lon_index that was used before.
parent 9888a473
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -16,6 +16,8 @@ class AP_Declination ...@@ -16,6 +16,8 @@ class AP_Declination
{ {
public: public:
static float get_declination(float lat, float lon); static float get_declination(float lat, float lon);
private:
static int16_t get_lookup_value(uint8_t x, uint8_t y);
}; };
#endif // AP_Declination_h #endif // AP_Declination_h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment