From the looks of it you’ve already accounted for every possibility in the first two if statements.
You have “if Vision20 detects object” and “if else Vision20 doesn’t detect object”
That means there will never be an “else,” as Vision 20 will always either detect an object, or not detect an object.
Try putting the other two conditionals in seperate “if” statements, instead of “else if”
3 Likes
I don’t know about the else: stop driving
, but idk what you want your robot to do. That looks good.
1 Like
I ended up recoding it and it works
1 Like