/* * This file is part of Cleanflight and Betaflight. * * Cleanflight and Betaflight are free software. You can redistribute * this software and/or modify this software under the terms of the * GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) * any later version. * * Cleanflight and Betaflight are distributed in the hope that they * will be useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this software. * * If not, see . */ #include "platform.h" #ifdef USE_GPS #include "io/gps.h" #include "pg/pg.h" #include "pg/pg_ids.h" #include "gps.h" PG_REGISTER_WITH_RESET_TEMPLATE(gpsConfig_t, gpsConfig, PG_GPS_CONFIG, 4); PG_RESET_TEMPLATE(gpsConfig_t, gpsConfig, #if defined(USE_VIRTUAL_GPS) .provider = GPS_VIRTUAL, #else .provider = GPS_UBLOX, #endif .sbasMode = SBAS_NONE, .autoConfig = GPS_AUTOCONFIG_ON, .autoBaud = GPS_AUTOBAUD_OFF, .gps_ublox_acquire_model = UBLOX_MODEL_STATIONARY, .gps_ublox_flight_model = UBLOX_MODEL_AIRBORNE_4G, .gps_update_rate_hz = 10, .gps_ublox_use_galileo = false, .gps_set_home_point_once = false, .gps_use_3d_speed = false, .sbas_integrity = false, .gps_ublox_utc_standard = UBLOX_UTC_STANDARD_AUTO, .gps_ublox_enable_ana = false, .nmeaCustomCommands = "", ); #endif // USE_GPS