check two CRC types
[u360gts.git] / src / main / tracker / interpolation.h
blob2f7b6ebd579c7b5fd9296e5faa97c792e3096f78
1 /*
2 * This file is part of u360gts, aka amv-open360tracker 32bits:
3 * https://github.com/raul-ortega/amv-open360tracker-32bits
5 * u360gts is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * u360gts is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with u360gts. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef SRC_MAIN_TRACKER_LAGRANGE_H_
21 #define SRC_MAIN_TRACKER_LAGRANGE_H_
23 #include <stdint.h>
24 #include <stdbool.h>
25 #include <stdio.h>
27 typedef struct {
28 uint32_t time;
29 float heading;
30 float speed;
31 } iPoint_t;
33 void iInit(uint8_t n);
34 bool iPutPoint(uint32_t time,float heading,float speed);
35 bool iPut(iPoint_t point);
36 bool iGet();
37 bool iFull();
38 iPoint_t iEval(float A);
40 #endif /* SRC_MAIN_TRACKER_LAGRANGE_H_ */