Fixed angle condition

This commit is contained in:
Aviv Faraj 2021-09-07 09:32:55 -04:00 committed by GitHub
parent db7db3b370
commit 132e4952ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ if __name__ == "__main__":
angle = float(input("angle: "))
# Ensure valid angle
if angle > 90 or angle <= 0:
if angle > 90 or angle < 1:
print("Error: Invalid angle. Range is 1-90 degrees.")
# Ensure valid velocity