Subversion Repositories FlightCtrl

Rev

Rev 1159 | Rev 1161 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1159 Rev 1160
Line 14... Line 14...
14
static int16_t          stickValue = INT16_MIN;                 // Aktueller Stick-Wert
14
static int16_t          stickValue = INT16_MIN;                 // Aktueller Stick-Wert
Line 15... Line 15...
15
 
15
 
Line 16... Line 16...
16
int pitch_inc_value( void ) {
16
int pitch_inc_value( void ) {
-
 
17
 
Line 17... Line 18...
17
 
18
        int32_t rawStickValue = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]];
Line 18... Line 19...
18
        int32_t rawStickValue = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]];
19
//      int16_t rawStickValue = PPM_in[EE_Parameter.Kanalbelegung[K_GAS]];
-
 
20
 
-
 
21
        DebugOut.Analog[25] = rawStickValue;
Line 19... Line 22...
19
 
22
 
20
        DebugOut.Analog[25] = rawStickValue;
23
//      rawStickValue = ((rawStickValue * rawStickValue * rawStickValue) / (PARAM_INC_GAS_SCALE+1))  / (PARAM_INC_GAS_SCALE+1);
21
 
24
        rawStickValue = (rawStickValue * rawStickValue * rawStickValue) / (PARAM_INC_GAS_SCALE+1);
22
        rawStickValue = ((rawStickValue * rawStickValue * rawStickValue) / (PARAM_INC_GAS_SCALE+1))  / (PARAM_INC_GAS_SCALE+1);
25
//      rawStickValue = (rawStickValue * rawStickValue) / ((rawStickValue > 0 ? PARAM_INC_GAS_SCALE : -PARAM_INC_GAS_SCALE) +1);