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

catching ctrl-c doesn't work #7

Open
lukaszrc opened this issue Aug 7, 2018 · 0 comments
Open

catching ctrl-c doesn't work #7

lukaszrc opened this issue Aug 7, 2018 · 0 comments

Comments

@lukaszrc
Copy link

lukaszrc commented Aug 7, 2018

while(1):
	try:
		#2 means port 2, onlineFollower means name of function handler
		bot.requestLineFollower(1,2,onLineFollower)
		print "!!!"
		sleep(0.5)
	except KeyboardInterrupt:
		print "stop!!!!!!!!!!!!!"
		input('Press enter to continue')_

It is not possible to print stop
I would like to stop motors somewhere

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