Skip to content

A simple visual web debugger for PIDs, allowing both live data of the PID system and ability to configure the PID variables.

License

Notifications You must be signed in to change notification settings

Sleitnick/PIDebug

Repository files navigation

PIDebug

Visualize and tune PID controllers in a moving graph.

Install dependencies

npm install

Build Client

To build the client, run:

npm run client

If developing, this can be put into watch mode for the client using watch:

npm run client-watch

Run Server

npm run server

Then navigate to http://localhost:8080. The port may vary depending on the pidebug_config.json file.

Configuration

To change the web server and websocket ports, edit the pidebug_config.json file.

API

WebSocket (recommended)

(Coming soon)

HTTP

POST /api/data

Send PID data.

Request example:

{
	"data_points": [ {"time": 0.0, "value": 0.0}, ... ]
}

Response example:

{
	"ok": true,
	"state": {"kp": 0, "ki": 0, "kd": 0, "min": 0, "max": 0}
}

Note: State might contain no keys if on data has changed. If keys exist, then some of the state has changed and the PID should change these properties for itself.

POST /api/state

Set the initial state of the PID.

Request example:

{
	"kp": 0,
	"ki": 0,
	"kd": 0,
	"min": 0,
	"max": 0
}

Response example:

{
	"ok": true
}

About

A simple visual web debugger for PIDs, allowing both live data of the PID system and ability to configure the PID variables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published