|
|
 | | Re: NRLink reading RCX response
|
| (...) You might want to consider using NXC and the standard NXT firmware. Here's some code John Barnes wrote in NXC for reading sensor values via the NRLink: int count; int sensorval; int i; int temp; byte toggle=0; byte csum; byte RCXcmnd[]; /*[0] (...) (19 years ago, 4-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, (...) (19 years ago, 3-Aug-07, to lugnet.robotics.nxt)
| | |  | | 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 (...) (19 years ago, 3-Aug-07, to lugnet.robotics.nxt)
| | |  | | 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, (...) (19 years ago, 3-Aug-07, to lugnet.robotics.nxt)
| | |  | | Idea on how to interrupt RotateMotor?
|
| 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. (...) (19 years ago, 3-Aug-07, to lugnet.robotics.nxt)
| |