NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
navigation.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Copyright: collective.
5  * Cleanup: Martin Schröder <mkschreder.uk@gmail.com>
6  * Original source from Cleanflight.
7  *
8  * Ninjaflight is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * Ninjaflight is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #pragma once
23 
24 //TODO: these should probably be named nav_profile ..
25 
26 struct gps_profile {
27  uint16_t gps_wp_radius; // if we are within this distance to a waypoint then we consider it reached (distance is in cm)
28  uint8_t gps_lpf; // Low pass filter cut frequency for derivative calculation (default 20Hz)
29  uint8_t nav_slew_rate; // Adds a rate control to nav output, will smoothen out nav angle spikes
30  uint8_t nav_controls_heading; // copter faces toward the navigation point, maghold must be enabled for it
31  uint16_t nav_speed_min; // cm/sec
32  uint16_t nav_speed_max; // cm/sec
33  uint16_t ap_mode; // Temporarily Disables GPS_HOLD_MODE to be able to make it possible to adjust the Hold-position when moving the sticks, creating a deadspan for GPS
34 } __attribute__((packed)) ;
35 
uint16_t nav_speed_max
Definition: navigation.h:32
Definition: navigation.h:26
struct gps_profile __attribute__((packed))
uint8_t nav_controls_heading
Definition: navigation.h:30
uint16_t gps_wp_radius
Definition: navigation.h:27
uint16_t nav_speed_min
Definition: navigation.h:31
uint8_t gps_lpf
Definition: navigation.h:28
uint16_t ap_mode
Definition: navigation.h:33
uint8_t nav_slew_rate
Definition: navigation.h:29