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

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