Hi,
I get some problem with sweety's servos . They stopped to work ! I've tried the latest version of MRL with eclipse.
With an arduino duemilanove , all work as expected but with the arduino mega, i get the error "servo error servo's controller is not set" in eclipe log .
Arduino serial from mrl say :
publishMRLCommError/1
publishVersion/37
publishBoardInfo/1
publishMRLCommError/5/68/69/86/73/67/69/32/110/111/116/32/97/116/116/97/99/104/101/100
publishMessageAck/7
I saw that sweety's java file has been modified (arduino.servoAttach(rightForearm, 34); replace the old way , rightForearm.attach(arduino.getName(), 34);) . There is new change since that ?
Thank you for your help. This is a part of log that could help :D
09:12:32.209 [servo] ERROR c.myrobotlab.framework.Service - servo error servo's controller is not set
09:12:33.650 [servo] WARN c.myrobotlab.framework.Service - no such method Servo.attach(String,Integer,Integer) : - attempting upcasting
09:12:33.650 [servo] WARN c.myrobotlab.framework.Service - ouch! need to search through 201 methods
09:12:33.651 [servo] ERROR c.myrobotlab.framework.Service - boom goes method attach
09:12:33.652 [servo] ERROR class org.myrobotlab.logging.Logging - ------
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.myrobotlab.framework.Service.invokeOn(Service.java:1368)
at org.myrobotlab.framework.Service.invoke(Service.java:1253)
at org.myrobotlab.framework.Service.run(Service.java:1676)
at java.lang.Thread.run(Thread.java:745)
MRLComm version hasn't updated but the code has
Beetle, try uploading the latest mrlcomm to your arduinos.. We've made a lot of changes to MRLComm, but we haven't incremented the version number, sorry about the confusion.. try out the latest with a fresh upload and see if the issue still exists.
Thx for your help. All is up
Thx for your help. All is up to date, but i've still this problem. After several tests, i think the problem is in the function "attach()" of Sweety.java . If i run Sweety's service, i get an error from "attach()" but if i set the controller ,pin and attach a servo from the webgui, that work .
I see that in eclipse log :
And , here is the error returned in the webgui when i try to use Sweety.attach() :
the attach in your function
the attach in your function should be call that way
servo.attach(controller, pin[, pos, velocity])
position and velocity are optionnal.
It works ! , thx
It works ! , thx