Richard Peach

Results 12 comments of Richard Peach

If i have a moment I'll write a pull request for this... This is the code required for the photoelectric switch ``` PORT_GP1 = 0x00 PORT_GP2 = 0x01 PORT_GP4 =...

Color sensor: ``` def set_color(self, enable=True, port=PORT_GP2): msg = Message() msg.id = 137 msg.ctrl = 0x03 msg.params = bytearray([]) msg.params.extend(bytearray([int(enable)])) msg.params.extend(bytearray([port])) return self._extract_cmd_index(self._send_command(msg)) def get_color(self, port=PORT_GP2): msg = Message() msg.id...

The library already covers the conveyor belt but this is the code I'm using to get a more accurate distance in mm and speed in mm/second: ``` def conveyor_belt_distance(self, speed_mm_per_sec,...

Just create a new file in your project called `dobot_extensions.py` with the following in it: ``` import pydobot import math class Dobot(pydobot.Dobot): def conveyor_belt_distance(self, speed_mm_per_sec, distance_mm, direction=1, interface=0): if speed_mm_per_sec...

Couple of issues... I think they're issues with the firmware. * Try using GP2 - it seems to be the most reliable for the color sensor * GP5 doesn't seem...

Supporting data points is a new feature for the migration-tool. Unfortunately I can't give a time scale for supporting new features but its definitely something we'll consider as we update...

Hi Dave, I agree that the error logging probably need improving You'll probably find that the error in the browser console (F12 on windows) is more informative - or at...

Following up from an email with the logs... ```TypeError: n.body is undefined\n[188]/p

Debugged the actual code - turns out in this case it was a custom cockpit and the binary was available this was a bug and is captured in a separate...

Changes to be made to logging: - [x] Change the Error: [Object object] popup to better display errors - [x] Log which object caused the migration to fail - [...