From 288b56f0cf1c1aa479ea1afbd4eb4731b727f6ed Mon Sep 17 00:00:00 2001 From: "remi.greub" <remi.greub@hes-so.ch> Date: Sat, 5 Apr 2025 15:01:40 +0200 Subject: [PATCH] =?UTF-8?q?derniere=20version=20du=20mode=20slave=20(je=20?= =?UTF-8?q?sais=20plus=20ce=20que=20j'ai=20ajout=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- G3_TP1_labyrinth_slave_etu/src/labyrinth_slave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/G3_TP1_labyrinth_slave_etu/src/labyrinth_slave.c b/G3_TP1_labyrinth_slave_etu/src/labyrinth_slave.c index 55d9971..56b4403 100644 --- a/G3_TP1_labyrinth_slave_etu/src/labyrinth_slave.c +++ b/G3_TP1_labyrinth_slave_etu/src/labyrinth_slave.c @@ -102,7 +102,6 @@ int main(void) //accel_t ball_acc; while(1) { - delay(20); if(accel_read(&double_buf_tx) == ACC_NOERROR){ j = &double_buf_tx; j = (accel_t*)send_eth(sizeof(accel_t), true); @@ -116,9 +115,11 @@ int main(void) for(int i = 0; i<NUMBER_OF_BALLS; i++){ lcd_filled_circle(mstr_prev[i].ball_coord.x, mstr_prev[i].ball_coord.y, mstr_prev[i].radius, LCD_BLACK); lcd_filled_circle(mstr_now[i].ball_coord.x, mstr_now[i].ball_coord.y, mstr_now[i].radius, mstr_now[i].color); + //delay(BALL_DISP_PERIOD); } flag = false; } + Delay(BALL_DISP_PERIOD); } } -- GitLab