OpenRoberta / robertalab-ev3dev

roberta lab connector for ev3dev
Apache License 2.0
17 stars 14 forks source link

robertalab-ev3dev hangs when motor stalls #33

Closed bidaian closed 7 years ago

bidaian commented 7 years ago

Hi,

I'm using using the latest snapshot-ev3dev-jessie-ev3-generic-2017-02-08.img on EV3, with the SPIK3R robot. If a motor is blocked (stalled) then robertalab hangs forever.

We are trying to find the range of movement, but each time it hangs. Is there a way not to have the connector hang forever?

ensonic commented 7 years ago

Can you attach your program (export the xml from the open-roberta lab) or attach a screenshot?

bidaian commented 7 years ago

nepoprog.zip This is it. The robot is this one and we are trying to move the tail. Whenever the tail goes "out of range" the whole robot hangs and we have to restart it. The motor stays blocked, I mean, not floating. You can ssh into the robot. Now we're back using the stable ev3dev-jessie-ev3 but the problem persists.

I see many:

while (m.state):
                self.busyWait()

Could the problem be there? It seems to have the same behaviour for all states. Maybe when 'stalled' the motor could be stopped.