Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix function naming to match the documentation and examples #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rplidar.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def reset(self):
time.sleep(2)
self.clean_input()

def iter_measures(self, scan_type='normal', max_buf_meas=3000):
def iter_measurments(self, scan_type='normal', max_buf_meas=3000):
'''Iterate over measures. Note that consumer must be fast enough,
otherwise data will be accumulated inside buffer and consumer will get
data with increasing lag.
Expand Down Expand Up @@ -439,10 +439,10 @@ def iter_scans(self, scan_type='normal', max_buf_meas=3000, min_len=5):
scan : list
List of the measures. Each measurment is tuple with following
format: (quality, angle, distance). For values description please
refer to `iter_measures` method's documentation.
refer to `iter_measurments` method's documentation.
'''
scan_list = []
iterator = self.iter_measures(scan_type, max_buf_meas)
iterator = self.iter_measurments(scan_type, max_buf_meas)
for new_scan, quality, angle, distance in iterator:
if new_scan:
if len(scan_list) > min_len:
Expand Down