Code Examples

We are currently in the process of updating our Code Examples! While the links below still work, please see our new repository for examples compatible with REVLib 2025: REVLib Code Examples

January 4, 2025 Update -

Documentation for REVLib 2025 can now be found at: https://docs.revrobotics.com/revlib

Please bookmark our new page as we transition over and add more information there!

SPARK Motor Controllers

Alternate encoder

Analog Feedback Device

-

Arcade Drive With CAN

-

Arcade Drive With PWM

-

Bus Measurements

Encoder Feedback Device

-

Get and Set Parameters

Limit Switch

MAXSwerve Template

-

Mecanum Drive with CAN

-

-

Motor Follower

-

-

Position Closed Loop Control

Read Encoder Values

Smart Motion Example

-

Soft Limits

-

Tank Drive With CAN

-

-

Velocity Closed Loop Control

Last updated