sphero-sdk-raspberrypi-python icon indicating copy to clipboard operation
sphero-sdk-raspberrypi-python copied to clipboard

Can't change port with python SpheroRvrObserver

Open cletusw opened this issue 5 years ago • 2 comments

With the asyncio code I can properly set the port the Pi should use to communicate with the RVR (my Pi is set up as a USB Serial Gadget).

rvr = SpheroRvrAsync(
    dal=SerialAsyncDal(
        loop,
        port_id = "/dev/ttyGS0"
    )
)

SpheroRvrObserver, however, does not accept a dal parameter and so changing the port is not possible. Could this be added as an option?

cletusw avatar Oct 03 '20 18:10 cletusw

Hi @cletusw, this is a good suggestion, and may go into a future update to the SDK. In the meantime, you can edit the port in sphero_sdk/observer/client/dal/serial_observer_dal.py. This will work, though I realize it's not ideal.

Jim-Konish avatar Nov 14 '22 22:11 Jim-Konish

Thanks! Glad to hear it's being considered.

cletusw avatar Nov 14 '22 23:11 cletusw