We are trying to get values from the spark max encoders but we are having serious issues. We construct a CANEncoder using testSpark.getEncoder(). Trying to do getvelocity() though we only receive zero, or positive infinity, or negative infinity. getposition() either gives zero or an Nan. We do no division in the code that should cause this.
In the spark max client I changed from hall effect to encoder under advanced settings and then the motor doesn’t run at all. The output ratio is set at zero and I have been unable to change that but I do not know if that is relevant or not.