Im currently trying to make a program that turns my robot towards a object with the specified signature and am relatively new. After multiple attempts, i can’t find the error due to the fact that the VEX code V5 editor doesnt give me the right line that the error is on.
(using python)
code:
vision_11.take_snapshot(vision_11__SIG_1)
if vision_11.take_snapshot(vision_11__SIG_1):
if vision_11.largest_object.centerX < 158:
turn(LEFT)
drivetrain.drive(FORWARD)
elif vision_11.largest_object.centerX > 158:
turn(RIGHT)
drivetrain.drive(FORWARD)
elif vision_11.largest_object.centerX == 158:
drivetrain.drive(FORWARD)