VEX Code
With the VEXcode VR I created a program with code blocks to help a robot with a camera to complete a maze. As you can see here this is the maze. It is filled with different coloured blocks. These blocks help the robot to understand its surroundings and move according to them. In order to allow the robot to actually use the different coloured blocks as guidance I wrote a small code by using code blocks. This is the code I wrote, what this code does is is that it allows robot to move according to the different coloured blocks. I specified the turning and moving speed, I also added a black coloured pen to allow robot to mark the way it had passed. When the robot sees the colour I ask the robot does the next command I put, which is the turn block I used in order to guide the robot to the next target. And lastly when the robot reaches the destination, which is the red block, the robot stops. This is the finished state of the maze and the program. I think that VEXcode has a very big pote
Comments
Post a Comment