Skip to content

Commit

Permalink
Add PID factors in config
Browse files Browse the repository at this point in the history
(cherry picked from commit 228c5f75f80d2e1f7e20a70e97f3c1a29b1d9b08)
  • Loading branch information
mathieucarbou committed Jun 28, 2024
1 parent 3cfdf71 commit caff69a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/YaSolRDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@
#define KEY_OUTPUT2_TEMPERATURE_STOP "o2_temp_stop"
#define KEY_OUTPUT2_TIME_START "o2_time_start"
#define KEY_OUTPUT2_TIME_STOP "o2_time_stop"
#define KEY_OUTPUT2_TIME_STOP "o2_time_stop"
#define KEY_PID_KP "pid_kp"
#define KEY_PID_KI "pid_ki"
#define KEY_PID_KD "pid_kd"
#define KEY_RELAY1_LOAD "relay1_load"
#define KEY_RELAY1_TYPE "relay1_type"
#define KEY_RELAY2_LOAD "relay2_load"
Expand Down
3 changes: 3 additions & 0 deletions src/init/Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Mycila::Task bootTask("Boot", [](void* params) {
config.configure(KEY_OUTPUT2_TEMPERATURE_STOP, String(YASOLR_OUTPUT_AUTO_STOP_TEMPERATURE));
config.configure(KEY_OUTPUT2_TIME_START, "22:00");
config.configure(KEY_OUTPUT2_TIME_STOP, "06:00");
config.configure(KEY_PID_KP, "0.66");
config.configure(KEY_PID_KI, "0.005");
config.configure(KEY_PID_KD, "0.8");
config.configure(KEY_PIN_DISPLAY_SCL, String(YASOLR_DISPLAY_CLOCK_PIN));
config.configure(KEY_PIN_DISPLAY_SDA, String(YASOLR_DISPLAY_DATA_PIN));
config.configure(KEY_PIN_JSY_TX, String(YASOLR_JSY_TX_PIN));
Expand Down

0 comments on commit caff69a

Please sign in to comment.