From 764c8722596f5b3bd01bb26848f7289b0972d7b0 Mon Sep 17 00:00:00 2001 From: Abel Tim Date: Sun, 23 Mar 2025 12:38:48 +0100 Subject: updated repo structure --- CODE/code_flowchart.svg | 1654 ----------------------------------------------- 1 file changed, 1654 deletions(-) delete mode 100644 CODE/code_flowchart.svg (limited to 'CODE/code_flowchart.svg') diff --git a/CODE/code_flowchart.svg b/CODE/code_flowchart.svg deleted file mode 100644 index a3bfa16..0000000 --- a/CODE/code_flowchart.svg +++ /dev/null @@ -1,1654 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - Teensy code - SETUP: - Define all ports and create variables - - -Start serial connection with OpenMV canmera and with a posibly connected computer - -Start I2C connection with the port multiplexers - -Start serial connection with OpenMV canmera and with a posibly connected computer - -Connect unconected pins to ground - - -Configure IR sensors - - - - - - LOOP - - collect sensor data - -gather IR sensor data - -select color sensor N and gather its extract color from data - - 6x - -collect location of the goal from openMV - -Read compas data - - Print all data to serial port for debuging. - - - - - Do the color sensors see a line? - - - YES - - - NO - Move back. - - - Is the robot in posesion of the ball? - - YES - - - NO - - Do we see the ball? - - NO - - - YES - - - move towards the ball - Have we seen the ball in the last 10 loops? - - NO - - Start spinning whilst moving on the field - - - - - - - - - - - - - - - - - - - Is our front aimed towards the goal? - - YES - - - NO - - Turn towards the goal. - Move towards the goal. - - - - - - - - YES - - Continue last direction. - - - - - - -- cgit v1.2.3