Skip to content

catching ctrl-c doesn't work #7

Description

@lukaszrc
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions