Package com.revrobotics.jni
Class CANSWDLJNI
java.lang.Object
com.revrobotics.jni.RevJNIWrapper
com.revrobotics.jni.CANSWDLJNI
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CANSWDLJNI
public CANSWDLJNI()
-
-
Method Details
-
AddDevice
public static void AddDevice(int numDevicesToAdd, int... deviceIDs) Add a device to be updated- Parameters:
numDevicesToAdd
- The total number of devices you wish to update. This must match the number of motor controller IDs you pass into the next parameterdeviceIDs
- The device IDs you wish to update as a list of any size. Length must match the numDevicesToAdd parameter
-
RunSWDL
Begin the software update for the sparks. You can call this function repeatedly to get the status of the update- Parameters:
fileName
- The filename of the bin file to send to the Spark MAXs- Returns:
- The percent complete of the download
-