Rev 426 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 426 | Rev 460 | ||
---|---|---|---|
1 | #ifndef _SETTINGS_H |
1 | #ifndef _SETTINGS_H |
2 | #define _SETTINGS_H |
2 | #define _SETTINGS_H |
3 | 3 | ||
4 | #include "91x_lib.h" |
4 | #include "91x_lib.h" |
5 | 5 | ||
6 | typedef enum |
6 | typedef enum |
7 | { |
7 | { |
8 | PID_KML_LOGGING, |
8 | PID_KML_LOGGING, |
9 | PID_GPX_LOGGING, |
9 | PID_GPX_LOGGING, |
10 | PID_GPS_AUTOCONFIG, |
10 | PID_GPS_AUTOCONFIG, |
11 | PID_ABSOLUTE_FLYING_RANGE, |
11 | PID_ABSOLUTE_FLYING_RANGE, |
12 | PID_ABSOLUTE_FLYING_ALT, |
12 | PID_ABSOLUTE_FLYING_ALT, |
13 | PID_GPS_SBAS_CONFIG, |
13 | PID_GPS_SBAS_CONFIG, |
14 | PID_AUTO_DESCEND_RANGE, |
14 | PID_AUTO_DESCEND_RANGE, |
15 | PID_MIN_EVENT_TIME, |
15 | PID_MIN_EVENT_TIME, |
- | 16 | PID_WP_WAIT_FOR_LED, |
|
16 | PID_WP_ACCELERATE |
17 | PID_WP_ACCELERATE, |
- | 18 | PID_SEND_NMEA |
|
17 | } ParamId_t; |
19 | } ParamId_t; |
18 | 20 | ||
19 | void Settings_Init(void); |
21 | void Settings_Init(void); |
20 | void Settings_SetDefaultValues(void); |
22 | void Settings_SetDefaultValues(void); |
21 | u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue); |
23 | u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue); |
22 | extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2... |
24 | extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2... |
23 | extern u16 WaypointAcceleration; // the real value |
25 | extern u16 WaypointAcceleration; // the real value |
24 | #endif // _SETTINGS_H |
26 | #endif // _SETTINGS_H |
25 | 27 | ||
26 | 28 | ||
27 | 29 |