Patrick,
I see the problem...I'm always storing the absolute value of the RotationAngle when this property gets set. Thus, if you had previously set the value to -30, it would have store the value 30 in the RotationAngle's private 'angle' member. Then, when you set the RotationAngle property to 30, you can see that nothing will get set, since it thinks the last value (angle) is 30. Thus, when you invoke Rotate(), it uses the last value stored, and it keeps using that. Thus, when you set a slightly different angular value, then Rotate() works as desired. Dohh!! I'll get this fixed asap. :)
{
angle =
fractionalRotation = (
angularDistancePercentage = trackCircumference / fractionalRotation;
distanceTicks = (
motor1Distance = distanceTicks;
motor2Distance = -distanceTicks;
}
motor1Distance = -distanceTicks;
motor2Distance = distanceTicks;
Okay, it'll be on it's way this afternoon. :)
Thank you for your order!
Nope, just a bug added one late night from one very overly worked programmer/business man/engineer/daddy/husband. :)