|
Re: Servo back and forth
It's pretty simple actually. You just use that triangular chooser and choose between 0 and 170 (which I believe is that max angle of the servos, not 180, but I could be wrong), then hook up that value to the Servo Set Angle. I think you just made it too complicated the way you did it, and the problem you had was you tried to perform a Boolean operation on two numbers at the bottom there.
__________________
q = (2*b) | ~(2*b);
if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");
|