iRobotEducation / irobot-edu-python-sdk

Python SDK for iRobot Edu robots (Root or Create 3)
BSD 3-Clause "New" or "Revised" License
16 stars 6 forks source link

Debate about whether or not events should latch #40

Open shamlian opened 7 months ago

shamlian commented 7 months ago

Right now, the robots' multizone sensor events (cliffs for Create, touch sensors, bumper, etc.) use event sensitivity lists which are masks; they trigger if any non-False item in the list matches with the currently incoming event. This means that for a sensor with two zones, an event with a sensitivity list [True, False] will trigger when the sensor's 0th element is triggered, and then again if that 0th element is held while the 1st element is triggered. This can lead to some strange or even confusing behavior. Should this be changed?