2 * This file is part of Betaflight.
4 * Betaflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Betaflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Betaflight. If not, see <http://www.gnu.org/licenses/>.
27 #include "build/debug.h"
29 #include "common/axis.h"
30 #include "common/filter.h"
31 #include "common/maths.h"
32 #include "common/utils.h"
34 #include "config/config.h"
35 #include "drivers/time.h"
38 #include "fc/rc_controls.h"
39 #include "fc/rc_modes.h"
40 #include "fc/runtime_config.h"
42 #include "flight/autopilot.h"
43 #include "flight/failsafe.h"
44 #include "flight/imu.h"
45 #include "flight/pid.h"
46 #include "flight/position.h"
50 #include "pg/autopilot.h"
51 #include "sensors/acceleration.h"
53 #include "gps_rescue.h"
55 float gpsRescueAngle
[RP_AXIS_COUNT
] = { 0, 0 };
57 void gpsRescueInit(void)
61 void gpsRescueUpdate(void)
62 // runs at gpsRescueTaskIntervalSeconds, and runs whether or not rescue is active
66 float gpsRescueGetYawRate(void)
68 return 0.0f
; // the control yaw value for rc.c to be used while flightMode gps_rescue is active.
71 float gpsRescueGetImuYawCogGain(void)
76 bool gpsRescueIsConfigured(void)
81 bool gpsRescueIsAvailable(void)
86 bool gpsRescueIsDisabled(void)
92 bool gpsRescueDisableMag(void)
98 #endif // USE_GPS_RESCUE