remove hardcoded P and I changes

This commit is contained in:
Peter McGoron 2023-01-12 19:19:19 +00:00
parent ca5105a6bb
commit 7ceaa730d9
1 changed files with 0 additions and 15 deletions

View File

@ -77,21 +77,6 @@ int main(int argc, char **argv) {
mod->fulfilled = 0; 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) { if (mod->finish_cmd) {
mod->start_cmd = 0; mod->start_cmd = 0;
} }