Threshold obstacle distance increased to 40 cm

This commit is contained in:
Fabio Manganiello 2018-03-06 02:44:44 +01:00
parent 8674626934
commit dcd4f9eddf

View file

@ -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'.