GithubHelp home page GithubHelp logo

iworld4us / closed-loop-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from duet3d/closed-loop-plugin

0.0 0.0 0.0 19 KB

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

Vue 86.81% JavaScript 13.19%

closed-loop-plugin's Introduction

Closed Loop Tuning Plugin

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

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',
  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.

Once you have finished developing, or if you just wish to compile from source, run npm run build in the DWC directory. This will generate the /dist directory within DWC. Copy all the files that start ClosedLoopTuning....js from /dist/js in DWC into the dist/dwc folder in this repository. Repeat and copy all the files from DWC's /dist/css that start ClosedLoopTuning....css into this repositories /dist/dwc directory.

Finally, compress the contents of this repositories dist folder into a zip file (such that plugin.json is at the top level of the zip folder). The resulting zip folder is the compiled plugin that can be uploaded to DWC as described in 'Getting Started'.

closed-loop-plugin's People

Contributors

lirwin3007 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.