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 / 845
844  |  846
Subject: 
Idea on how to interrupt RotateMotor?
Newsgroups: 
lugnet.robotics.nxt
Date: 
Fri, 3 Aug 2007 01:31:58 GMT
Viewed: 
20693 times
  
Since there is no event in nxc.  Is there  anyway to interrupt this call via
a Off(OUT_AC) in another task?



    RotateMotor(OUT_AC, 20, 800);



I could have used a time Wait after  onFwd. However, This will not allow me
to get a more previous degree turning.



Any suggestion?



--E









--
MIME ATTACHMENTS DISCARDED:

1.  Content-Type: text/html;
    charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    Content-Length: 2439



Message has 1 Reply:
  RE: Idea on how to interrupt RotateMotor?
 
Look at the following sample code: ===...=== int shut =0; task x1() { TextOut(0, LCD_LINE3, "Waiting until it sees dark!..."); until (Sensor(IN_1)<40); shut=1; Off(OUT_AC); } task x2() { RotateMotorEx(OUT_AC, 75, 360, 0, FALSE, TRUE); TextOut(0, (...) (17 years ago, 3-Aug-07, to lugnet.robotics.nxt)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in NXT programmable brick

 
Verified and Trusted Team of Hackers
21 hours ago
Custom Search

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