If you just print out the input airspeed and the intermediate variables a, a2, oldas and b immediately before the stepper.rotate you'll probably spot what's happening. Or post them here and maybe we will.
Steve
If you just print out the input airspeed and the intermediate variables a, a2, oldas and b immediately before the stepper.rotate you'll probably spot what's happening. Or post them here and maybe we will.
Steve