-
Notifications
You must be signed in to change notification settings - Fork 144
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
Actounix L12 100 not recognized #733
Comments
Using a In your case |
Hi, thank you for your immediate answer! I created this scipt:
But when i run it i get this error:
And results in:
|
Try adding a time delay between |
Tried that and I keep getting the same error. Changed the time delay up to 20 seconds just in case it was being slow, but nothing. |
OK, I think this is a bug in the python library then.
|
Is the |
It's been a long time. My memory is probably faulty 😉 Better check the docs: http://docs.ev3dev.org/projects/lego-linux-drivers/en/ev3dev-stretch/motors.html#tacho-motor-subsystem So maybe |
I suspect it is trying to cache |
It's called linear the output for
is
so the attributes are different, but i don't know why it tries to get |
Yeah, the issue is here: https://github.com/ev3dev/ev3dev-lang-python/blob/ev3dev-stretch/ev3dev2/motor.py#L425 When we restructured speed unit handling we entirely missed the linear actuator case which lacks that attribute. Right now we have speed units which know how to work for rotational motors but not for linear actuators. I'm inclined to go with the simpler solution of not supporting speed units other than percentages with linear actuators; I'll implement it and we can go from there. @trinidadg if you'd like an immediate workaround, this should work: from ev3dev2.motor import Motor
@property
def patch_count_per_rot(self):
return 1
Motor.count_per_rot = patch_count_per_rot And then don't try to use |
@trinidadg Would you be up to test out my fix from #734? If your EV3 has Internet access, you can do the following:
This should install the development version and you can import/use the library as normal. If you are able to test this, please do let me know how it goes! I tested to confirm normal rotational motors still work but I don't have any linear ones to try. To undo the installation of the development version, run |
The make failed with this error:
|
For some reason, the instruction
It worked fine for a while but now it keeps throwing that error. |
Check the mode of the port. Only certain modes allow |
@trinidadg I haven't gotten a chance to look into the installation error you posted; for our purposes though you can replace line 10 (the middle line below) in setup(name='python-ev3dev2',
version='2.1.0.post3',
description='v2.x Python language bindings for ev3dev', |
I've been working with ev3-dev for the past weeks and successfully configured various sensors and actuators. However I can't get the Actuonix Linear Actuator working.
When I try to initialize the class, it says the motor is not connected.
I checked for the driver and it is there:
I have changed the port and the cable just in case and had no luck.
When I create a simple Motor class in that port It uses the lego-ev3-l-motor driver.
Using that it responds to the on(vel) command, going both ways and stopping on the edges. I can't use stop() (it does nothing) and when asked for position it says 0 or 1 being fully retracted or fully extended.
Really hope for some help! Thanks
Desktop :
Robot:
ev3dev-sysinfo -m output:
The text was updated successfully, but these errors were encountered: