scanse / sweep-sdk

Sweep SDK
MIT License
90 stars 85 forks source link

RuntimeError: unable to start scanning. could not verify motor speed. #88

Closed brusangel closed 7 years ago

brusangel commented 7 years ago

sweep firmware version

Version 1.3 #### libsweep version + affected bindings

latest at this moment (20160510- just cloned and installed from git repository) working with sweeppy

operating system

Linux raspberrypi 4.4.50-v7+ #970

Platform/Hardware Setup

Raspberry pi 3

Description:

Traceback (most recent call last):
  File "lidar360.py", line 196, in <module>
    main()
  File "lidar360.py", line 154, in main
    sweep.start_scanning()
  File "build/bdist.linux-armv7l/egg/sweeppy/__init__.py", line 136, in start_scanning
RuntimeError: unable to start scanning. could not verify motor speed.
dcyoung commented 7 years ago

Does start_scanning() fail almost immediately, or does it seem to block for ~10 seconds before it fails?

Does your code successfully call any other methods before start_scanning() or is start_scanning() the first method after device creation?

If there is nothing called before start_scanning()... by that I mean your code looks like this:

with Sweep(dev) as sweep:
        # call start_scanning before any other sweep methods
        sweep.start_scanning()
        ....

then this might be related to #73... in which case try the stop_scanning_buffer_fix branch.

git clone https://github.com/scanse/sweep-sdk
git checkout stop-scanning-buffer-fix
# normal install procedure
...

Edit: Fixed typo in branch name

brusangel commented 7 years ago

it fails almost immediately.

start_scanning() is the first method called after resource allocation.

I'm getting this...

$ git checkout stop_scanning_buffer_fix
error: pathspec 'stop_scanning_buffer_fix' did not match any file(s) known to git.

thanks!

dcyoung commented 7 years ago

Woops... the underscores should be dashes. Try git checkout stop-scanning-buffer-fix

brusangel commented 7 years ago

issue solved/closed!

thank you very much!