| 1 | // Part of dump1090, a Mode S message decoder for RTLSDR devices. |
| 2 | // |
| 3 | // cpr.h - Compact Position Reporting prototypes |
| 4 | // |
| 5 | // Copyright (c) 2014,2015 Oliver Jowett <[email protected]> |
| 6 | // |
| 7 | // This file is free software: you may copy, redistribute and/or modify it |
| 8 | // under the terms of the GNU General Public License as published by the |
| 9 | // Free Software Foundation, either version 2 of the License, or (at your |
| 10 | // option) any later version. |
| 11 | // |
| 12 | // This file is distributed in the hope that it will be useful, but |
| 13 | // WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | // General Public License for more details. |
| 16 | // |
| 17 | // You should have received a copy of the GNU General Public License |
| 18 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | |
| 20 | #ifndef DUMP1090_CPR_H |
| 21 | #define DUMP1090_CPR_H |
| 22 | |
| 23 | int decodeCPRairborne(int even_cprlat, int even_cprlon, |
| 24 | int odd_cprlat, int odd_cprlon, |
| 25 | int fflag, |
| 26 | double *out_lat, double *out_lon); |
| 27 | |
| 28 | int decodeCPRsurface(double reflat, double reflon, |
| 29 | int even_cprlat, int even_cprlon, |
| 30 | int odd_cprlat, int odd_cprlon, |
| 31 | int fflag, |
| 32 | double *out_lat, double *out_lon); |
| 33 | |
| 34 | int decodeCPRrelative(double reflat, double reflon, |
| 35 | int cprlat, int cprlon, |
| 36 | int fflag, int surface, |
| 37 | double *out_lat, double *out_lon); |
| 38 | |
| 39 | #endif |