Class CANSWDLJNI

java.lang.Object
com.revrobotics.jni.RevJNIWrapper
com.revrobotics.jni.CANSWDLJNI

public class CANSWDLJNI extends RevJNIWrapper
  • 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 parameter
      deviceIDs - The device IDs you wish to update as a list of any size. Length must match the numDevicesToAdd parameter
    • RunSWDL

      public static int RunSWDL(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