55,6 → 55,7 |
#include "main.h" |
#include "parameter.h" |
#include "pitch.h" |
#include "altcon.h" |
#include "eeprom.c" |
|
unsigned char h,m,s; |
730,11 → 731,7 |
StickGier = -PPM_in[EE_Parameter.Kanalbelegung[K_GIER]]; |
|
// Gaswert übernehmen |
if( pitchNeutral() ) { |
StickGas = pitch(); |
} else { |
StickGas = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]] + 120; |
} |
StickGas = pitch_value(); |
|
GyroFaktor = ((float)Parameter_Gyro_P + 10.0) / (256 / STICK_GAIN ); |
IntegralFaktor = ((float) Parameter_Gyro_I) / (44000 / STICK_GAIN ); |
1232,7 → 1229,7 |
GasMischanteil *= STICK_GAIN; |
|
// Fehlerwert der Höhenregelung einmischen |
GasMischanteil -= altitudeController(); |
GasMischanteil -= altcon_error(); |
|
// Mindestens auf Minimalgas stellen |
if( GasMischanteil < MIN_GAS ) |