From 7ceaa730d9a79575461ca117d399b5d3562c349e Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Thu, 12 Jan 2023 19:19:19 +0000 Subject: [PATCH] remove hardcoded P and I changes --- firmware/rtl/control_loop/control_loop_sim.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/firmware/rtl/control_loop/control_loop_sim.cpp b/firmware/rtl/control_loop/control_loop_sim.cpp index 8e26bcc..0503f0f 100644 --- a/firmware/rtl/control_loop/control_loop_sim.cpp +++ b/firmware/rtl/control_loop/control_loop_sim.cpp @@ -77,21 +77,6 @@ int main(int argc, char **argv) { mod->fulfilled = 0; } - /* Test changing constants mid-loop. */ - if (tick == 50000) { - mod->cmd = CONTROL_LOOP_WRITE_BIT | CONTROL_LOOP_P; - /* 0.60 */ - mod->word_into_loop = 0b1001100110011001100110011001100110011001100; - mod->start_cmd = 1; - printf("adjust P\n"); - } - if (tick == 100000) { - mod->cmd = CONTROL_LOOP_WRITE_BIT | CONTROL_LOOP_I; - /* 0.5 */ - mod->word_into_loop = (V)1 << (CONSTS_FRAC - 1); - printf("adjust I\n"); - mod->start_cmd = 1; - } if (mod->finish_cmd) { mod->start_cmd = 0; }