Threshold obstacle distance increased to 40 cm
This commit is contained in:
parent
8674626934
commit
dcd4f9eddf
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class GpioZeroborgPlugin(Plugin):
|
||||||
distance = self.get_distance()
|
distance = self.get_distance()
|
||||||
logging.info('Closest obstacle distance: {} mm'.format(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
|
self._direction = Direction.DIR_UP.value
|
||||||
else:
|
else:
|
||||||
logging.info('Physical obstacle detected at {} mm'.
|
logging.info('Physical obstacle detected at {} mm'.
|
||||||
|
|
Loading…
Reference in a new issue