The distance sensor reset method is a compact version of a wall reset using distance sensors and trigonometry. In contrast to Allen's wall reset, which used a lot of if statements, this method will make use of pointers to cut down on the if number of if statements used.
It is split into 2 steps:
Determine which distance sensor corresponds with which direction (and which is invalid)
Calculate the robot's position using the distance sensors
The math may be incorrect and may need to be reviewed, as well as the logic of the method itself.
Will need more in depth testing at the workshop to determine the actual error.
The distance sensor reset method is a compact version of a wall reset using distance sensors and trigonometry. In contrast to Allen's wall reset, which used a lot of if statements, this method will make use of pointers to cut down on the if number of if statements used.
It is split into 2 steps:
The math may be incorrect and may need to be reviewed, as well as the logic of the method itself. Will need more in depth testing at the workshop to determine the actual error.