 | | Re: TachoSpeed.nqc
|
|
(...) You assumed correctly. Without the wait the if statement is always executed immediately. I see what you mean: by taking the wait out of the start of the loop the sensors are checked more frequently. That doesn't solve the riddle though, (...) (19 years ago, 12-Mar-07, to lugnet.robotics)
|
| |
 | | NXT now has atan2 function block
|
|
Download atan2 (and atan, sin, cos, sqrt blocks) at www.convict.lu/Jeune...sIntro.htm for NXT-G. Please report any bugs. (19 years ago, 12-Mar-07, to lugnet.robotics)
|
| |
 | | Re: IR tower problems on a laptop with NQC
|
|
(...) Does the green light in the tower come on at all when you try to send the message? Is the light only on when you are trying to communicate? If the light is always one I would look for another application that is trying to use the serial port. (...) (19 years ago, 12-Mar-07, to lugnet.robotics.rcx, FTX)
|
| |
 | | Re: TachoSpeed.nqc
|
|
(...) I don't really understand what you mean when you say "the brick doesn't do anything". Can you be more specific? (...) They will both be executed in sequence if at the time the second if statement reads the TachoSpeed setting on OUT_L it (...) (19 years ago, 12-Mar-07, to lugnet.robotics)
|
| |
 | | Re: TachoSpeed.nqc
|
|
Doesn't this make more sense. (...) The way it was written you hardly ever checked the TachoSpeed because most of the time was spent in the Wait(20). I assume the Wait is in there to allow the robot to get up to speed before you start checking for a (...) (19 years ago, 12-Mar-07, to lugnet.robotics)
|
| |
 | | Re: TachoSpeed.nqc
|
|
(...) I 've done just that, but the problem I describe persists: When the TachoSpeed reported by watching the brick is around 57, the brick doesn't do anything if the response value is set to 62. It does at 66 or 67 but that also makes it impossible (...) (19 years ago, 12-Mar-07, to lugnet.robotics)
|
| |
 | | Re: TachoSpeed.nqc
|
|
(...) The problem is almost certainly that your program only runs for about 2 tenths of a second. If you want the program to run forward continuously and execute a special behavior if at some point during the execution of the program the TachoSpeed (...) (19 years ago, 11-Mar-07, to lugnet.robotics)
|
| |
 | | Re: IR tower problems on a laptop with NQC
|
|
I also figured out what COM3 was: the internal modem. I disabled it in Device Manager and now the only port that I can find in my C# app or in Hyperterminal is COM1, the serial port. But the IR tower is still not working. By the way, the built-in IR (...) (19 years ago, 10-Mar-07, to lugnet.robotics.rcx, FTX)
|
| |
 | | Re: NXT Turkey MOC
|
|
Really nice! I recently built the original bug from the descriptions in the "10 Cool Lego Mindstorms RIS 2 Projects' book but the program files that come with it are all lsc files. I'm having a hard enough time learning NQC to try to make sense of (...) (19 years ago, 10-Mar-07, to lugnet.robotics)
|
| |
 | | TachoSpeed.nqc
|
|
I'm trying to write a simple routine that uses the TachoSpeed value to see if my Cybermaster has run into something. I'm trying this on tiled floor, by making the bot with tank threads run into the wall, but only very occasionally does it actually (...) (19 years ago, 10-Mar-07, to lugnet.robotics)
|