Subversion Repositories NaviCtrl

Rev

Rev 624 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 624 Rev 673
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
        PID_POSITION_ACCURACY,
20
        PID_POSITION_ACCURACY,
21
        PID_DPH_SPEED,
21
        PID_DPH_SPEED,
22
        PID_WP_REACHED_TIMEOUT,
22
        PID_WP_REACHED_TIMEOUT,
23
        PID_LOG_AT_MOTORRUN,
23
        PID_LOG_AT_MOTORRUN,
24
        PID_SPEAK100M,
24
        PID_SPEAK100M,
25
        PID_AUTO_WP_EVENT_VALUE
25
        PID_AUTO_WP_EVENT_VALUE,
-
 
26
        PID_GPS_SYSTEM_CFG,
-
 
27
        PID_GPS_QZSS_CONFIG
26
} ParamId_t;
28
} ParamId_t;
27
 
29
 
28
void Settings_Init(void);
30
void Settings_Init(void);
29
void Settings_SetDefaultValues(void);
31
void Settings_SetDefaultValues(void);
30
u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue);
32
u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue);
31
extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2...
33
extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2...
32
extern u16 WaypointAcceleration;  // the real value
34
extern u16 WaypointAcceleration;  // the real value
33
#endif // _SETTINGS_H
35
#endif // _SETTINGS_H
34
 
36
 
35
 
37
 
36
 
38