OSDFaA One Sensor Detection Following and Avoidance. this is a project for my robotics class to detect obstacles by only using a singular ultraviolet sensor ev3 tamt means the amount of times it has touched the block, switch is space for pro and anti this is able to the used in Ev3 , all variables are avaliable to be used in ev3 ant is avoidance 1 pro is following 0 realdir converts scratch 180,-180 angles to 360 last dir is the last angle the bot was at in the thing detect is if it is touching, distance is ovbious and turn is a variable to make the robot turn by a certain value that includes angle related things like cos and sine and possibly tangent in the future this is extremely difficult to attempt and it has to be procedural due to the fact i only have 1 try in my competition, and this will help me advance my knowledge as my recent code converting feet and icnhes to amount of seconds has been corrupted and deleted , but it was extremely inaccurate on the turn speed , 90 degrees making the seconds by an extra .111111111 seconds which is also difficult to predict on a precedural level
note that this is not to be accurate, if i wanted it to be accurate there would be atleast 3 more variables but i do not have the time to do more as i just started the attemot today on april 5 2022 8:05 pm Attempts ended on Aug 30, 2023 i will continue this later - A2 Feb 21, 2024