SparkFlex
Last updated
Was this helpful?
Last updated
Was this helpful?
This page refers to the REV Spark Flex while attached to a BRUSHLESS MOTOR (REV Vortex's) .
An small example program to create a CANSparkFlex
object is as follows.
The Spark Flex allows you to test the motor controller PID, run the motor at a set percentage, and update the firmware all from the REV Hardware Client. Installation of the REV Hardware client is required to use the SparkFlex for YAGSL.
The Spark Flex must be disconnected from the CAN bus on startup to run via the REV Hardware Client!
To tune the PID of the Spark Flex you need to open up the REV Hardware Client select the Spark Flex then open the telemetry tab and set it to position control while messing with the parameters in the lefthand pane.
The Spark Flex is only capable of communicating via CAN and may see some exciting new features soon with CAN FD support!
The following example is one for a module configuration file, e.g. frontleft.json
, frontright.json
, backleft.json
, and backright.json
.
pidfproperties.json
physicalproperties.json