To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 847
  RotateMotorEx hangs
 
This is actually the topic about interrupting RotateMotor(). I resend with a more appropriate topic. --E -----Original Message----- From: news-gateway@lugnet.com [mailto:news-gateway...ugnet.com] On Behalf Of Elizabeth Mabrey Sent: Thursday, August (...) (17 years ago, 3-Aug-07, to lugnet.robotics.nxt)
 
  Re: RotateMotorEx hangs
 
(...) When you call RotateMotorXXX here is the code that is executed: subroutine __RotateMotor0 brtst EQ, __rotate_Done0, __rotate_angle0 sign __rotate_thePower0, __rotate_angle0 abs __rotate_theAngle0, __rotate_angle0 mul __rotate_thePower0, (...) (17 years ago, 3-Aug-07, to lugnet.robotics.nxt)
 
  RE: RotateMotorEx hangs
 
"... Maybe I could check that the power level is not equal to zero as well..." Good idea. Will be included in the coming release? --Elizabeth -----Original Message----- From: news-gateway@lugnet.com [mailto:news-gateway...ugnet.com] On Behalf Of (...) (17 years ago, 5-Aug-07, to lugnet.robotics.nxt)
 
  Re: RotateMotorEx hangs
 
(...) You asked for it, you got it. :-) John Hansen (17 years ago, 5-Aug-07, to lugnet.robotics.nxt)
 
  RE: RotateMotorEx hangs
 
As long as it will still retain the value of rotation count, it will be very useful. Otherwise, it will be bad! This will help in simulating an event driven instance. Do you see there is any down side of this implementation other than a few more (...) (17 years ago, 6-Aug-07, to lugnet.robotics.nxt)
 
  Re: RotateMotorEx hangs
 
(...) The change I have made is to replace this: // Waits till angle reached index __rotate_firstPort0, __rotate_ports0, NA __rotate_Running0: getout __rotate_rs0, __rotate_firstPort0, RunState brcmp EQ, __rotate_Running0, __rotate_rs0, (...) (17 years ago, 6-Aug-07, to lugnet.robotics.nxt)
 
  Re: RotateMotorEx hangs
 
(...) Hi Elizabeth: Here is how you could do it in Java: LightSensor eye = new LightSensor(SensorPort.S1); Motor.A.setSpeed(720); // 2 revolutions per second LCD.drawString("wait for dark",0,0); LCD.refresh(): Motor.A.rotate(3600,true); //rotate 10 (...) (17 years ago, 8-Aug-07, to lugnet.robotics.nxt)
 
  Re: RotateMotorEx hangs
 
(...) <snipped> The RotateMotor call is designed to block. If you don't want to block then you can write code almost exactly like what Roger wrote in Java using other NXC API calls. Like so: #define UF_TLSM UF_UPDATE_TACHO_LIMI...PDATE_MODE #define (...) (17 years ago, 8-Aug-07, to lugnet.robotics.nxt)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR