Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mistake in Ultrasonic +IR avoid lesson #3

Open
maxifly opened this issue Oct 14, 2023 · 0 comments
Open

Mistake in Ultrasonic +IR avoid lesson #3

maxifly opened this issue Oct 14, 2023 · 0 comments

Comments

@maxifly
Copy link

maxifly commented Oct 14, 2023

Program block

     elif distance >= 15 and LeftSensorValue == False and RightSensorValue == False :
         car.Car_Stop() 
         time.sleep(0.1)
         car.Car_Spin_Right(90,90) 
         time.sleep(1)

excess. Because in this case "Way is free", but robot spin infinity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant