Skip to content

SparkMax Encoder API  #78

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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