39 Commits (master)

Author SHA1 Message Date
Andrew Tridgell be62bf32cb AP_Declination: added get_earth_field_ga() interface 6 years ago
Andrew Tridgell 444588aaef AP_Declination: added generation of field tables 7 years ago
Andrew Tridgell 03b1fdca97 AP_Declination: split tables into a separate file 7 years ago
Andrew Tridgell 252fc9c757 AP_Declination: added inclination and intensity tables 7 years ago
Mathieu OTHACEHE 152edf7189 Global: remove mode line from headers 8 years ago
Ricardo de Almeida Gonzaga af13e2cca4 AP_Declination: Fix typos 9 years ago
Ricardo de Almeida Gonzaga 5bd034a5a8 Global: start using cmath instead of math.h 9 years ago
Lucas De Marchi 88319f52f7 AP_Declination: remove line continuation slashes 9 years ago
Lucas De Marchi 3ae0082f52 AP_Declination: stop using Progmem.h 9 years ago
Lucas De Marchi 1b07dabeb7 Replace prog_char and prog_char_t with char 9 years ago
Lucas De Marchi 831d8acca5 Remove use of PROGMEM 9 years ago
Lucas De Marchi e4b313d2ca Replace use of memcpy_P() with memcpy() 9 years ago
Gustavo Jose de Sousa 23f634835d AP_Declination: standardize inclusion of libaries headers 10 years ago
Andrew Tridgell 97b7130bb9 libraries: update license header to GPLv3 12 years ago
Andrew Tridgell ba83950fc4 libraries: replace constrain() with constrain_float() 12 years ago
James Bielman 5631f865b2 Update floating point calculations to use floats instead of doubles. 12 years ago
Andrew Tridgell 69af1add15 Declination: fixes for AP_HAL progmem interface 12 years ago
Pat Hickey 9aada26e34 AP_Declination: translated to AP_HAL 12 years ago
uncrustify bcfff533f0 uncrustify libraries/AP_Declination/AP_Declination.cpp 13 years ago
Andrew Tridgell 927834106d AP_Declination: save some more memory by putting the declination keys in progmem 13 years ago
Andrew Tridgell 175352845c AP_Declination: fixed build under SITL 13 years ago
Adam M Rivera 01b1e58f7d AP_Declination: Update LUT based on the changes that I made in the LUT generation code. This LUT is the final version that has no truncation. 13 years ago
Adam M Rivera 23f6093f05 AP_Declination: Updated comments to reflect new LUT size. 13 years ago
Adam M Rivera 50791a8b0f AP_Declination: Removed trailing zero deltas as they have no impact on the final value and only take up extra bytes. 13 years ago
Adam M Rivera f35e447927 AP_Declination: Updated compressed lookup value table. Located 9 more failure points due to truncation on the packed LUT. 13 years ago
Adam M Rivera 72b70c394c AP_Declination: Found 7 of the 22 failure points and fixed them. The issue with those 7 was the way I originally packed the value array. The last delta values on some rows were getting truncated. The new number of failures is down to 15 - WIP. 13 years ago
Adam M Rivera 230ca1ddca AP_Declination: Moved check for y index of zero to after the y index is properly transformed. 13 years ago
Adam M Rivera e0fa053c79 AP_Declination: The exception signs unpacking logic was incorrect. I was shifting a 1 value left y%8 which would have needed a the signs to be packed right to left. My packed signs byte was packed left to right (left most being the 0 position) so I needed to reverse the shifting. 13 years ago
Adam M Rivera f66c6e16e4 AP_Declination: In order for the bitwise & operation to work, negative signs need to be represented by 1s instead of 0s. Changed so that negative signs are represented by a 1 in the packed signs array. Updated lookup logic to reflect this change. 13 years ago
Adam M Rivera d88b9e8ffc AP_Declination: Updated packed exception signs array. I had the signs packed incorrectly. 13 years ago
Adam M Rivera efefc3e4f4 AP_Declination: Moved rows with large spikes in delta to their own unsigned exception rows. The signs are in a separate packed array. 13 years ago
Adam M Rivera 0dcc4e8307 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. 13 years ago
Adam M Rivera 3a849771bc AP_Declination: Changed PROGMEM read function to pgm_read_word_far to support the int16_t datatype. 13 years ago
Adam M Rivera 370e56c00a AP_Declination: Changed datatype to int16_t to support the -90 <-> 90 latitude range. 13 years ago
Adam M Rivera ae257ad42b AP_Declination: Reduced the size of the lookup table to support -75 <-> 70 latitude range. This allows the datatype to remain int8_t. 13 years ago
Andrew Tridgell c1b945018b AP_Declination: fixed usage of headers 13 years ago
Adam M Rivera b9be6ed290 AP_Declination: Updated comment. 13 years ago
Adam M Rivera e08b50ee91 AP_Declination: Increased range of supported latitude coordinates. 13 years ago
Adam M Rivera d2a07b1603 Added AP_Declination library. It contains the lookup table (lat/lng -> declination) as well as a method that performs the lookup. 13 years ago