Skip to content

Commit

Permalink
IR sensor "proximity" is object proximity, not distance to the remote (
Browse files Browse the repository at this point in the history
…#579)

Fixes #518
  • Loading branch information
WasabiFan authored and dwalton76 committed Dec 23, 2018
1 parent 11a3c50 commit 19616bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ev3dev2/sensor/lego.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,8 +775,8 @@ def _normalize_channel(self, channel):
@property
def proximity(self):
"""
A measurement of the distance between the sensor and the remote,
as a percentage. 100% is approximately 70cm/27in.
An estimate of the distance between the sensor and objects in front of
it, as a percentage. 100% is approximately 70cm/27in.
"""
self._ensure_mode(self.MODE_IR_PROX)
return self.value(0)
Expand Down

0 comments on commit 19616bf

Please sign in to comment.