Rev 1134 | Rev 1139 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1134 | Rev 1137 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #ifndef PARAMETER_H |
4 | #ifndef PARAMETER_H |
5 | #define PARAMETER_H |
5 | #define PARAMETER_H |
Line 6... | Line 6... | ||
6 | 6 | ||
Line 7... | Line -... | ||
7 | #define PARAM_TIMER_2S 100 // 2 Sekunden |
- | |
8 | 7 | #define PARAM_TIMER_2S 100 // 2 Sekunden |
|
9 | #define PARAM_PITCH_MIN2 EE_Parameter.UserParam2 // Minimalgas |
8 | |
10 | #define PITCH_ALT_THRESHOLD PITCH_MIN2 // Schwellwert für Höhenregelung |
9 | #define PITCH_ALT_THRESHOLD PITCH_MIN2 // Schwellwert für Höhenregelung |
Line 11... | Line -... | ||
11 | #define PITCH_NEUTRAL_TIMER 25 |
- | |
12 | #define PITCH_MIN2_TIMER 100 |
10 | #define PITCH_NEUTRAL_TIMER 25 |
13 | - | ||
14 | #define PITCH_NEUTRAL_DIFF EE_Parameter.UserParam1 |
11 | #define PITCH_MIN2_TIMER 100 |
15 | #define PARAM_ALT_P Parameter_Hoehe_P |
12 | |
16 | #define PARAM_ALT_I EE_Parameter.UserParam3 |
13 | #define PARAM_ALT_P Parameter_Hoehe_P |
17 | #define PARAM_ALT_D Parameter_Luftdruck_D |
14 | #define PARAM_ALT_D Parameter_Luftdruck_D |
18 | #define PARAM_ALT_ACC Parameter_Hoehe_ACC_Wirkung |
15 | #define PARAM_ALT_ACC Parameter_Hoehe_ACC_Wirkung |
19 | #define PARAM_ALT_GAIN EE_Parameter.Hoehe_Verstaerkung |
- | |
20 | #define PARAM_ALT_MAX EE_Parameter.MaxHoehe |
- | |
Line 21... | Line 16... | ||
21 | #define PARAM_ALT_INT_MAX 1000000L |
16 | #define PARAM_ALT_GAIN EE_Parameter.Hoehe_Verstaerkung |
22 | #define PARAM_ALT_EXP_SMOOTHING_FACTOR EE_Parameter.UserParam4 // Faktor für exp. Glättung |
17 | #define PARAM_ALT_MAX EE_Parameter.MaxHoehe |
23 | 18 | #define PARAM_ALT_INT_MAX 1000000L |
|
24 | - | ||
25 | /****************************************************************************************** |
19 | |
26 | * Allgemeine Pitch-Steuerungsparameter |
20 | /****************************************************************************************** |
27 | */ |
- | |
Line 28... | Line 21... | ||
28 | 21 | * Parameter für Neutral-Pitch-Steuerung |
|
29 | #define PARAM_PITCH_STICK_THRESHOLD 5 |
22 | */ |
30 | #define PARAM_PITCH_MIN2 EE_Parameter.UserParam2 // Minimalgas |
23 | #define PARAM_PITCH_NEUTRAL_DIFF EE_Parameter.UserParam1 // Stick-Loslass-Erkennung |
31 | #define PITCH_ALT_THRESHOLD PITCH_MIN2 // Schwellwert für Höhenregelung |
- | |
- | 24 | #define PARAM_PITCH_MIN2 EE_Parameter.UserParam2 // Minimalgas |
|
32 | 25 | ||
33 | /****************************************************************************************** |
- | |
Line 34... | Line 26... | ||
34 | * Parameter für Neutral-Pitch-Steuerung |
26 | /****************************************************************************************** |
35 | */ |
27 | * Allgemeine Pitch-Steuerungsparameter |
36 | 28 | */ |
|
37 | #define PARAM_PITCH_NEUTRAL_DIFF EE_Parameter.UserParam1 // Stick-Loslass-Erkennung |
- | |
38 | 29 | #define PARAM_PITCH_STICK_THRESHOLD 5 |
|
39 | 30 | #define PITCH_ALT_THRESHOLD PITCH_MIN2 // Schwellwert für Höhenregelung |
|
40 | /****************************************************************************************** |
31 | |
Line 41... | Line 32... | ||
41 | * Parameter für MD-Pitch-Steuerung |
32 | /****************************************************************************************** |
- | 33 | * Parameter für MD-Pitch-Steuerung |
|
- | 34 | */ |
|
- | 35 | #define PARAM_PITCH_MD_HOVER EE_Parameter.UserParam1 // Standgaswert |
|
- | 36 | #define PARAM_PITCH_MD_DELAY0 5 // Begrenzung der Pitch-Beschleunigung am Boden |
|
- | 37 | #define PARAM_PITCH_MD_DELAY1 0 // Begrenzung der Pitch-Beschleunigung im Flug |
|
- | 38 | ||
42 | */ |
39 | |
43 | 40 | /****************************************************************************************** |
|
Line 44... | Line 41... | ||
44 | #define PARAM_PITCH_MD_HOVER EE_Parameter.UserParam1 // Standgaswert |
41 | * Parameter für Höhenregelung |
45 | #define PARAM_PITCH_MD_DELAY0 5 // Begrenzung der Pitch-Beschleunigung am Boden |
42 | */ |