Subversion Repositories NaviCtrl

Rev

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

Rev 581 Rev 622
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
} ParamId_t;
25
} ParamId_t;
25
 
26
 
26
void Settings_Init(void);
27
void Settings_Init(void);
27
void Settings_SetDefaultValues(void);
28
void Settings_SetDefaultValues(void);
28
u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue);
29
u8 Settings_GetParamValue(ParamId_t Pid, u16* pValue);
29
extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2...
30
extern u16 WaypointAccelerationSetting; // acceleration for flying waypoints in percent (0-100) or Poti -> 255 = Poti1, 254 = Poti2...
30
extern u16 WaypointAcceleration;  // the real value
31
extern u16 WaypointAcceleration;  // the real value
31
#endif // _SETTINGS_H
32
#endif // _SETTINGS_H
32
 
33
 
33
 
34
 
34
 
35