|
Re: CounterObject for RPM
If it only works when the motor is going slow, could it be that your wheel or whatever you're driving is going faster than the AS5030's max RPM? Also I think that encoder in particular isn't really for detecting speeds more than angles. You might be better off using the encoders that go on the ToughBoxes. In any case, could you post your encoder code just to make sure it isn't something wrong with that? It could also be that you haven't set up the encoder properly in the code.
__________________
q = (2*b) | ~(2*b);
if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");
|