Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.

Files

Latest commit

23d5ce1 · Jan 9, 2024

History

History

Read Encoder Values

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 8, 2022
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Feb 1, 2021
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024

Read Encoder Values

Description

This example shows how to read the values from an encoder connected to the SPARK MAX, specifically how to read their position and velocity values.

Usage

Set the variables at the beginning of the example to match your setup.

  • deviceID - CAN device ID

Control the motor's velocity by moving the joystick up or down.

The position and velocity of the encoder will be displayed on SmartDashboard.