Skip to content

SparkMax Encoder API  #78

@LouisAsanaka

Description

@LouisAsanaka

This is not an urgent issue, but there might be some inefficiencies when getting the encoder positions on from the SparkMaxes. The CANSparkMax class has a method getEncoder(), which for some reason instantiates a new CANEncoder object every time it is called. Using the SparkMaxPrime class in raidzero.robot.components changes this, as only one encoder object is created throughout the object's lifetime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions