Class CANSWDLJNI

    • 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 updated
      static int RunSWDL​(java.lang.String fileName)
      Begin the software update for the sparks.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CANSWDLJNI

        public CANSWDLJNI()
    • 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 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​(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