From dcd4f9eddf77202fb3fcd5ca5e495059dbf60114 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 6 Mar 2018 02:44:44 +0100 Subject: [PATCH] Threshold obstacle distance increased to 40 cm --- platypush/plugins/gpio/zeroborg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/gpio/zeroborg/__init__.py b/platypush/plugins/gpio/zeroborg/__init__.py index 3d2cf468e6..123613b599 100644 --- a/platypush/plugins/gpio/zeroborg/__init__.py +++ b/platypush/plugins/gpio/zeroborg/__init__.py @@ -87,7 +87,7 @@ class GpioZeroborgPlugin(Plugin): distance = self.get_distance() logging.info('Closest obstacle distance: {} mm'.format(distance)) - if distance > 300.0: # distance in mm + if distance > 400.0: # distance in mm self._direction = Direction.DIR_UP.value else: logging.info('Physical obstacle detected at {} mm'.