PDA

View Full Version : Detect R/c Pulse Got Up Or Dn (Accelerating or Decelerating)



jetpr
- 1st August 2005, 05:40
PumpMath = (Throttle - ThrottleMin) * 100 / (ThrottleMax - ThrottleMin)
(PumpMath go From 0 to 100)

If (CurrentStepl < CurrentStep) And (CurrentStep < 100) Then
If (CurrentStepl < PumpMath) Then
CurrentStepl = CurrentStepl + 1
GoingUpDn=1
EndIf
EndIf

If (CurrentStepl > CurrentStep) And (CurrentStep < 100) Then
If (CurrentStepl > PumpMath) Then
CurrentStepl = CurrentStepl - 1
GoingUpDn=2
EndIf
EndIf

More Ideas how to do This i need to add more range

like PumpMath = 11 to increment 1 in CurrentStepl in set off 1