NEO SparkMax v1.4 Encoder Error. Resets to NoSensor Sensor Type after config... FIX

When you use version 1.4 on the spark max controllers there is an error with the config that every time your code builds the motor controller Sensor Type resets to No Sensor and the controller won’t drive the motor and will blink ORANGE/MAGENTA which according to the API means encoder error.
The FIX that works is to create an encoder object and get the encoder.
CANSparkMax m_motor = new CANSparkMax(1, MotorType.kBrushless);

CANEncoder m_motorEnc = m_motor.getEncoder();


Yes. And also, I’ve learned to number your CAN IDs starting with 1 (up to 62). Using 0 was no good.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.