Add GPS Lap Timer (#11856)
[betaflight.git] / src / main / pg / gps_lap_timer.c
bloba293fee13302996c71033ad2cc5f1910fab0f4b9
1 /*
2 * This file is part of Betaflight.
4 * Betaflight is free software. You can redistribute this software
5 * and/or modify this software under the terms of the GNU General
6 * Public License as published by the Free Software Foundation,
7 * either version 3 of the License, or (at your option) any later
8 * version.
10 * Betaflight 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.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this software.
19 * If not, see <http://www.gnu.org/licenses/>.
22 #include "platform.h"
24 #ifdef USE_GPS_LAP_TIMER
26 #include "pg/pg.h"
27 #include "pg/pg_ids.h"
29 #include "gps_lap_timer.h"
31 PG_REGISTER_WITH_RESET_TEMPLATE(gpsLapTimerConfig_t, gpsLapTimerConfig, PG_GPS_LAP_TIMER, 1);
33 PG_RESET_TEMPLATE(gpsLapTimerConfig_t, gpsLapTimerConfig,
34 .gateLat = 0,
35 .gateLon = 0,
36 .minimumLapTimeSeconds = 10,
37 .gateToleranceM = 9,
40 #endif // USE_GPS_LAP_TIMER