Rev 484 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 484 | Rev 489 | ||
---|---|---|---|
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_WAIT_FOR_LED, |
17 | PID_WP_ACCELERATE, |
17 | PID_WP_ACCELERATE, |
18 | PID_SEND_NMEA, |
18 | PID_SEND_NMEA, |
19 | PID_CH_SPEED |
19 | PID_CH_SPEED |
20 | } ParamId_t; |
20 | } ParamId_t; |
21 | 21 | ||
22 | void Settings_Init(void); |
22 | void Settings_Init(void); |
23 | void Settings_SetDefaultValues(void); |
23 | void Settings_SetDefaultValues(void); |
24 | u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue); |
24 | u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue); |
25 | extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2... |
25 | extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2... |
26 | extern u16 WaypointAcceleration; // the real value |
26 | extern u16 WaypointAcceleration; // the real value |
27 | #endif // _SETTINGS_H |
27 | #endif // _SETTINGS_H |
28 | 28 | ||
29 | 29 | ||
30 | 30 |