A heartfelt thanks to Grog for MRL and a good morning to you all.
I just installed and started trying MRL with the following configuration:
MRL,
1 Arduino Uno R3,
Logitech Force 3D Pro Joystick 1,
1 Servo Hitec HS-5585MH (Programmable Digital Amplifier whit MOSFET Drive
and this python sketch:
After starting the sketch, the joystick is detected in the window controller, if I move the slider in the "servo window" the servo moves, but the servo does not move if i want to drive it with the joystick, what am I wrong? Thanks for the reply! Have a nice day! :)
Hello And Welcome Frank !My
Hello And Welcome Frank !
My guess is that the axis is not expected - you can confirm this by opening the myrobotlab.log
if there are a bunch of "unknown axis ..." errors - then that would be the problem.
Please familiarize yourself with the ubiquitous noWorky, this will send us your myrobotlab.log so we may further assist you. (How to do a noWorky - http://myrobotlab.org/content/helpful-myrobotlab-tips-and-tricks-0#noWorky)
Cheers,
GroG
A quick look at the log :)
Strange !
Ok Frank,
Got the log you sent (that part works ;)
It looks strange - huge amount of non-printable characters.. and then I can see the joystick_polling thread overloaded someone's queue..
I'll need to check this out with some "real" hardware - tonight I'll get the joystick connected and see what's going on ...
Hello Frank,with the
Hello Frank,
with the folloing modified script I can send the data to python, if you convert it to the appropriate range (from -1.0 <--> 1.0 to 0 <---> 180 and change the type to in I believe you can call pan.moveTo(newValue) and it will work for you.
I haven't looked at the Joystick service for a long time - there are a few modifications which I could do, which would make the python code more clean.
At the very minimum this script will show you the value of the joystick in the python output tab
Grog Hello, I tried the new
Grog Hello, I tried the new scketch python, java window shows a series of warning such as "460 336 [joystick_polling] WARN org.myrobotlab.framework.Outbox - joystick outbox BUFFER OVERRUN size 1537", the python window is empty, the slider pan moves the servo in three positions -1, 0, +1, the joystick is detected, but does not move the servo .... Ideas on this? Regards :)
http://myrobotlab.org/content
http://myrobotlab.org/content/joystick-control-remote-servo-over-tcpip
Hello Frank,The Joystick
Hello Frank,
The Joystick service needed some large improvements. We have not completed all of them but on this post you can see the progress.
http://myrobotlab.org/content/joysticks-joysticks-joysticks
Best Regars,
GroG