Skip to content

A plugin to tune and plot data from the Duet closed loop driver board

License

Notifications You must be signed in to change notification settings

Duet3D/ClosedLoopTuningPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Closed Loop Tuning Plugin

Visualise the performance of your 1HCL closed loop controller board or Motor23CL closed loop motor.

Image of the plugin UI

Getting Started

To install the plugin into Duet Web Control (DWC):

  1. Navigate to the latest release and download the closed-loop-plugin.zip asset
  2. Upload the zip folder to DWC by using the 'upload system files' button in the 'system' area
  3. Follow the on-screen instructions for installing the plugin
  4. Navigate to Setting > Machine Specific > Machine Specific Plugins and click the 'Start' button
  5. A 'closed loop' option should appear in the left sidebar - you're ready to start tuning!

Please note that DWC 3.3.0 is the minimum supported version of DWC. If you have difficulty following the above instructions, or if the plugin does not work as expected, please ensure you have updated to the latest version of DWC.

Contributing and Compiling from source

If you don't fancy using the latest release, or you wish to contribute changes, you can compile this plugin yourself from source. To do this, you first need to clone the Duet Web Control (DWC) repo from https://github.com/Duet3D/DuetWebControl.

Once you have DWC cloned, copy the /src folder from this repository into the /src/plugins folder in DWC. Then, rename the newly copied /src/plugins/src folder to /src/plugins/ClosedLoopTuning.

Copy the following object into the export default array in DWC's /src/plugins/index.js

new DwcPlugin({
  id: 'ClosedLoopTuning',
  name: 'Closed Loop Tuning',
  author: 'Louis Irwin, Juan Rosario',
  version,
  loadDwcResources: () => import(
    /* webpackChunkName: "ClosedLoopTuning" */
    './ClosedLoopTuning/index.js'
  )
})

If you wish to develop on the plugin, run npm run serve in the DWC directory and open the resulting build in your browser. You can then navigate to Settings > General > Built-in Plugins and click 'start' to run the plugin. Any changes made in /src/plugins/ClosedLoopTuning will then be hot-reloaded and reflected live in the browser.

Building as an external plugin

Once you have finished developing, or if you just wish to compile from source, run npm run build-plugin ../ClosedLoopTuningPlugin in the DWC directory where ../ClosedLoopTuningPlugin points to this directory. This will generate a ZIP file in the dist directory within DWC that can be uploaded as a plugin.

About

A plugin to tune and plot data from the Duet closed loop driver board

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •