Package com.revrobotics.jni
Class CANSWDLJNI
- java.lang.Object
-
- com.revrobotics.jni.RevJNIWrapper
-
- com.revrobotics.jni.CANSWDLJNI
-
public class CANSWDLJNI extends RevJNIWrapper
-
-
Constructor Summary
Constructors Constructor Description CANSWDLJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
AddDevice(int numDevicesToAdd, int... deviceIDs)
Add a device to be updatedstatic int
RunSWDL(java.lang.String fileName)
Begin the software update for the sparks.
-
-
-
Method Detail
-
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
public static int RunSWDL(java.lang.String fileName)
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
-
-