PID plotter component  1.0
ESP-IDF component for pid plotter
PID-Plotter

Requirements

Installation

cd <your_esp_idf_project>
mkdir components
cd components
git clone https://github.com/VedantParanjape/logger   
git clone https://github.com/VedantParanjape/pid-plotter-component pid_plotter

Change CMakeList.txt to add the line given below:

set(EXTRA_COMPONENT_DIRS <path_to_component_folder>)

How to use

Working

#include "pid_plotter.h"
void broad()
{
struct pid_terms dt;
dt.current = 1.00;
dt.error = 2.00;
dt.P = 3.00;
dt.I = 4.00;
dt.D = 5.00;
while(1)
{
esp_err_t err = send_to_queue(dt);
err = send_to_queue(dt);
logD("main", "%f", pid_const_read().setpoint);
vTaskDelay(10);
}
}
void app_main(void)
{
xTaskCreate(broad, "send", 4096, NULL, 1, NULL);
}

Detailed documentation