Working on a robot, need some help with the coding aspect

If you look at the code though, I don't control the speed, just set it as high or low