Bug report: MirrorMotor listeners

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

Bug report: MirrorMotor listeners

Postby rafalmag » Mon Feb 10, 2014 11:45 pm

Problem is that when using MirrorMotor - the rotationStopped method on listener is never called.
See below: The second method should call rotationStopped
Code: Select all
   public void rotationStarted(RegulatedMotor motor, int tachoCount,
         boolean stalled, long timeStamp) {
      if(regListener!=null)
         regListener.rotationStarted(this, -tachoCount, stalled, timeStamp);
   }

   public void rotationStopped(RegulatedMotor motor, int tachoCount,
         boolean stalled, long timeStamp) {
      if(regListener!=null)
            regListener.rotationStarted(this, -tachoCount, stalled, timeStamp);
   }
rafalmag
New User
 
Posts: 10
Joined: Mon Feb 10, 2014 11:40 pm

Re: Bug report: MirrorMotor listeners

Postby lawrie » Tue Feb 11, 2014 6:34 pm

I have fixed, but not tested, this in the 0.6.0-alpha release which is now out.
lawrie
leJOS Team Member
 
Posts: 929
Joined: Mon Feb 05, 2007 1:27 pm


Return to EV3 Software

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

more stuff