Create a drive motor using CANSparkMax call it frontLeftDriveMotor.
Declare SparkMaxRelativeEncoder frontLeftEncoder;
call
frontLeftEncoder=frontLeftDriveMotor.getEncoder(SparkMaxRelativeEncoder.Type.kHallSensor,42);
Problem is that the function call returns a RelativeEncoder object.
“Cannot convert from RelativeEncoder to SparkMaxRelativeEncoder”.
When I declare the encoder as a RelativeEncoder I get the message that it cannot be resolved as a type.
Not sure how to access, specify, etc., the encoder of the SparkMax/NEOS.