This is the first time I post here on Stack overflow. Bare with me if I am not clear at any point. I will work with with you and edit my questions to the best of my abilities.
I'm having difficulties getting this DFrobot maqueen to function. I've manage to make it work on a line track, but implementing object avoidance is another story.
I am currently working on https://makecode.microbit.org/#editor
This is the block of code I have so far. The first three if else if statements are supposed to guide the robot to follow the shortest path. While the last if statement tells the robot to back up. I am having trouble programming it to do anything else but backup.