Search found 7 matches

by mattj
Tue Aug 06, 2019 10:21 am
Forum: General Discussion
Topic: Python library issue
Replies: 14
Views: 10697

Re: Python library issue

That fixed my issue thank you so much I really appreciate it!
by mattj
Mon Aug 05, 2019 11:57 am
Forum: General Discussion
Topic: Python library issue
Replies: 14
Views: 10697

Re: Python library issue

Two int conversions and a .encode were also added in on lines 184 and 185. I am able to control both motors in motion studio, but I am only able to control motor 1 through python. I am assuming this is because I have done something unintended to the base code?
by mattj
Mon Aug 05, 2019 10:28 am
Forum: General Discussion
Topic: Python library issue
Replies: 14
Views: 10697

Re: Python library issue

import random import serial import struct import time class Roboclaw: 'Roboclaw Interface Class' def __init__(self, comport, rate, timeout=0.01, retries=3): self.comport = comport self.rate = rate self.timeout = timeout; self._trystimeout = retries self._crc = 0; #Command Enums class Cmd(): M1FORWA...
by mattj
Sat Aug 03, 2019 2:37 pm
Forum: General Discussion
Topic: Python library issue
Replies: 14
Views: 10697

Re: Python library issue

This issue was resolved by making edits to the roboclaw.py code provided in the download
by mattj
Fri Aug 02, 2019 10:31 am
Forum: General Discussion
Topic: Python library issue
Replies: 14
Views: 10697

Re: Python library issue

import time from roboclaw import Roboclaw #Windows comport name rc = Roboclaw("COM14",9600) #Linux comport name #rc = Roboclaw("/dev/ttyACM0",115200) rc.Open() address = 0x80 rc.ForwardMixed(address, 0) rc.TurnRightMixed(address, 0) while(1): rc.ForwardMixed(address, 32) time.sl...
by mattj
Fri Aug 02, 2019 9:10 am
Forum: General Discussion
Topic: Python library issue
Replies: 14
Views: 10697

Re: Python library issue

I have re-downloaded your python library and updated my pyserial library and still no luck. I have run it on python 3.5.2 as well as on python 3.7.2 on a separate computer. Thanks again for the responses!
by mattj
Thu Aug 01, 2019 8:18 am
Forum: General Discussion
Topic: Python library issue
Replies: 14
Views: 10697

Re: Python library issue

Hi all, I am running two motors off of the 2x15A micro-controller. I have had no issues using Motion Studio, but have been unable to communicate with the micro-controller using python. I am currently using python 3.5. My code: import time from roboclaw import Roboclaw rc = Roboclaw("COM10"...