Rev 2192 | Rev 2240 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2192 | Rev 2232 | ||
---|---|---|---|
Line 245... | Line 245... | ||
245 | /*****************************************************/ |
245 | /*****************************************************/ |
246 | /* Control Servo Position */ |
246 | /* Control Servo Position */ |
247 | /*****************************************************/ |
247 | /*****************************************************/ |
248 | void CalcNickServoValue(void) |
248 | void CalcNickServoValue(void) |
249 | { |
249 | { |
250 | unsigned int max, min; |
250 | signed int max, min; |
Line 251... | Line 251... | ||
251 | 251 | ||
252 | if(EE_Parameter.ServoCompInvert & SERVO_RELATIVE) // relative moving of the servo value |
252 | if(EE_Parameter.ServoCompInvert & SERVO_RELATIVE) // relative moving of the servo value |
253 | { |
253 | { |
254 | max = ((unsigned int) EE_Parameter.ServoNickMax * MULTIPLYER * 15); |
254 | max = ((unsigned int) EE_Parameter.ServoNickMax * MULTIPLYER * 15); |