SPARK MAX Code Examples
At the links below you will find code examples in LabVIEW, Java, and C++ for common SPARK MAX control modes. We will be adding examples as we develop them, so please check back regularly. Examples included as of 2/6/19:
- Alternate Encoder
- Arcade Drive with CAN
- Arcade Drive with PWM
- Bus Measurements
- Get and Set Parameters
- Limit Switch
- Position Closed Loop Control
- Read Encoder Values
- Velocity Closed Loop Control
- Alternate Encoder
- Analog Feedback Device
- Bus Measurements
- Encoder Feedback Device
- Get and Set Parameters
- Limit Switch
- Motor Follower
- Position Closed Loop Control
- Read Encoder Values
- Smart Motion Example
- Soft Limits
- Tank Drive With CAN
- Velocity Closed Loop Control
- Alternate Encoder
- Analog Feedback Device
- Arcade Drive With CAN
- Arcade Drive With PWM
- Bus Measurements
- Encoder Feedback Device
- Get and Set Parameters
- Limit Switch
- Position Closed Loop Control
- Read Encoder Values
- Smart Motion Example
- Soft Limits
- Velocity Closed Loop Control
Even though some examples may only exist in a particular language, they can be a good place to start as the APIs are very similar between languages.
|