| | Re: Improving the firmware?
|
|
(...) It's a good plan, but I don't think that's the right command. If someone was calculating the position of a line to draw it may well start or end off-screen in the negative values. How about hijacking the FileOpen command, and apply URL-type (...) (18 years ago, 20-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
David Wallace wrote: > occam ... I was wondering where I had dealt with that before. Then I > realized, I had a little introduction to this when writing test programs for > submarine circuit cards that had used transputers. Weren't they developed by (...) (18 years ago, 20-Feb-07, to lugnet.robotics.nxt)
|
|
| | Wait for Sound: Tone
|
|
Given: The Sound block can play a tone. What would it take to create a "Wait for Tone" block or to modify the "Wait for Sound" block to perceive a tone? I think a "Wait for Tone" block would help ease the transition to learning about communications (...) (18 years ago, 20-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
(...) occam ... I was wondering where I had dealt with that before. Then I realized, I had a little introduction to this when writing test programs for submarine circuit cards that had used transputers. Weren't they developed by NASA? David (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
The code is working right well! But i think the stall control at the end o each task has no meaning there, since the until loop does not let the script reach it if the motor become staled. (...) Patrick (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
(...) Yes, Now it is perfect. Not so obvious i think... Thanks! Patrick (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
(...) Hi Patrick, Indeed the Tacholimit can only be positive. But power can be negative, that's the way to reverse direction. Philo (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
(...) Hi Johan, While you're dealing with very practical questions here, I thought I'd throw a paper into the mix: (URL) was presented in the ACM conference on Programming Language Design and Implementation (PLDI) in 2005. It's a nice paper (...) (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
John, (...) It worked just as I expected. The two motors now are rotating the same time. Thanks to your example, now I am giving some time to understand this setOutput call, and reading all the documentation (it is quite easier with pratical (...) (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
(...) Or maybe just wrap the calls inside a mutex, so at least the behaviour is defined, if not optimum. Many of the NBC/NXC macros do exactly that, maybe all of them should? ROSCO (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
(...) I understand his confusion. Not allowing separate threads to call the same subroutine is certainly unexpected. The concept of "thread" conventionally involves separate stacks for local variables (and a shared global state -- unlike separate (...) (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Two motors at the same time... It is possible?
|
|
(...) It is possible. The NXC API doesn't currently wrap this capability in a really simple function. (...) The RotateMotor API function calls a subroutine written in NBC that does not return until the tachometer limit target has been reached. (...) (18 years ago, 19-Feb-07, to lugnet.robotics.nxt)
|
|
| | Two motors at the same time... It is possible?
|
|
Hi people, I was wondering if is possible to run two motors at the same time, using diferente parameters (speed and degrees)... The code bellow works, but first the motor A runs, then the motor B runs. ---...--- task main(){ RotateMotor(OUT_A, 50, (...) (18 years ago, 18-Feb-07, to lugnet.robotics.nxt)
|
|
| | NXC/NBC beta news
|
|
Sourceforge has disabled shell access for the next several days so I am not able to upload files or make changes to html on the NBC or BricxCC site. I can, however, upload files to the standard sourceforge release page. So for the time being I will (...) (18 years ago, 17-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Bluetooth Comm Problem
|
|
Glad we could help Ralph. And I'm sure there will be many great discussions in here as there already have been. (18 years ago, 17-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: BricxCC release 3.3.7.16
|
|
(...) Great! (...) Of course my comment was not intended to be offensive... but I have pestered a few times with that, so... ;o) Philo (18 years ago, 16-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | Re: NXC/NBC release news
|
|
(...) I completely agree. This flag bothers me with NXC as well as with NXT-G. (...) I have used a single white pixel .ric file to do just that. Awkward at best, but it works. (...) Not that bad... thanks to you and to Daniele for your (...) (18 years ago, 16-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Bluetooth Comm Problem
|
|
(...) Dick and David, Thanks for posting this conversation here. Even though I'm not participating directly, I am reading it and as I'm touching up the Bluetooth support for pbLua right now, this has given me invaluable insight into how the (...) (18 years ago, 16-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Bluetooth Comm Problem
|
|
Dick, Thanks! I tried it out tonight and got consistent messages from the PC. You were correct about having to continually do message reads until I get something. I didn't have to do the wait for a second STAT_COMM_PENDING (32) or the 200 ms wait. I (...) (18 years ago, 16-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: BricxCC release 3.3.7.16
|
|
(...) In the soon to be available new test release, BricxCC (3.3.7.17) now properly assumes NXC when a file has no extension if you switch your Preferred language for the standard firmware (on the Compiler|Common tab of the Preferences dialog) to be (...) (18 years ago, 15-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | Re: NXC/NBC release news
|
|
(...) I am inclined to agree with you. The NXT firmware system calls provide the flexibility for choosing whether to clear the screen before any screen drawing operation but generally this option is not needed every time. Since I have a ClearScreen (...) (18 years ago, 15-Feb-07, to lugnet.robotics.nxt)
|
|
| | NXT Remote in Smartphone
|
|
Hi. Does anyone knows about any software to control the NXT through Bluetooth that runs on smartphone? I used Onbrick on a Pocket PC, but now I'm looking for something that runs on a Moto Q Cell Phone. I read about Mindsquails being converted to (...) (18 years ago, 15-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: .NET Micro Framework released!
|
|
(...) The .NET Micro Framework documentations (URL) it requires at least 256K RAM and 512K Flash. The NXT processor has 64K RAM and 256K Flash.... Guy Ziv NXTasy.org (18 years ago, 15-Feb-07, to lugnet.robotics.nxt)
|
|
| | RE: NXC/NBC release news
|
|
(...) In addition to the explicit flag on the opcodes, the NXT-G firmware also does an implicit clear of the screen the first time a user application program writes to the screen. So the macros could be hard-coded with 'false' and this parameter (...) (18 years ago, 15-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: NXC/NBC release news
|
|
(...) I would agree. I would prefer versions of the graphics commands that didn't include the clear screen flag. The fact that LEGO designed the firmware to require the flag with each of these doesn't mean it's needed in a high level language. Of (...) (18 years ago, 15-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Bluetooth Comm Problem
|
|
Dick, Thanks for the research and all of the valuable information! It's Valentine's Day, so my wife won't allow me the time to try it tonight, but I'll try your suggestions tomorrow and see how it works. By the way, I actually saw a response come (...) (18 years ago, 15-Feb-07, to lugnet.robotics.nxt)
|
|
| | .NET Micro Framework released!
|
|
Microsoft released a micro version of the .NET Framework SDK today! Could we be writing C# code for the NXT, and unlike the Microsoft Robotics Studio, actually have that code run natively on the brick itself? Quick summary article: (URL) download (...) (18 years ago, 14-Feb-07, to lugnet.robotics.nxt, lugnet.robotics, lugnet.technic)
|
|
| | Re: NXC/NBC release news
|
|
Hi John! I think there is not an urgent need for a clear-screen flag in a bunch of NXT screen functions. That is, my sources are full of "false," flags :-) TextOut(...,true,...); TextOut(...,false,...); TextOut(...,false,...); LineOut(...,false); (...) (18 years ago, 14-Feb-07, to lugnet.robotics.nxt)
|
|
| | RE: Bluetooth Comm Problem
|
|
The NXT-G firmware implementation for mailbox messaging is extremely funky. I don't think your code is working properly for this implementation. You need to be continuously calling "ReadMessage" and only check for "a message was found" error code. (...) (18 years ago, 14-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Programming for NXT
|
|
(...) Would it help to add a "Last Updated: mm/dd/yyyy" to this page? Thank you Andy (18 years ago, 13-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Bluetooth Comm Problem
|
|
(...) I was a little confused about how I was supposed to determine when the message had been received. I wasn't sure whether the ReceiveMessage should be called multiple times or not. Here is my code: // Connection = 1, Queue = 0 (...) (18 years ago, 13-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: BricxCC release 3.3.7.16
|
|
(...) Agreed, even if you select NXT target BricxCC insists to use .nqc as default extension. Misleading at best... Philo (18 years ago, 13-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | RE: Bluetooth Comm Problem
|
|
(...) A visual review looks like everything is appropriate. The only thing I can think of is whether, on the NXT, you are calling "ReadMessage" more than once. You should have a loop that runs for at least 50 (or better yet 150) milliseconds. (...) (18 years ago, 13-Feb-07, to lugnet.robotics.nxt)
|
|
| | Bluetooth Comm Problem
|
|
I have been trying to communicate via BT from a Perl script on my PC to/from the NXT. I am not using Fantom. I have no problem receiving data from the NXT, but the NXT does not appear to be receiving the messages I send. I am capturing the serial (...) (18 years ago, 13-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: BricxCC release 3.3.7.16
|
|
It worked. The key was to save a file with .nxc extension... Thanks, Patrick "John Hansen" <afanofosc@comcast.net> escreveu na mensagem news:JDCzqy.MxL@lugnet.com... (...) (18 years ago, 12-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | NXC/NBC release news
|
|
I released beta 26 last night/this morning. It is primarily a bug fix release. If you want to use the new features in beta 25 you definitely should upgrade to beta 26 due to the problems that exist in the previous beta release. - Fixes an array (...) (18 years ago, 12-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | Re: BricxCC release 3.3.7.16
|
|
(...) If the Download button is enabled (the hot key is F6 and the button looks like a blue triangle point down) then when you click on that button your current NXC program is downloaded to the NXT unless some error message indicates otherwise. The (...) (18 years ago, 12-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | Re: BricxCC release 3.3.7.16
|
|
Just a question: (I am sure everybody knows the answer...) How do i upload a NXC code to NXT? Obviously is not throught the RCX "Program" combo (And it is disabled when conecting to NXT), but the upload icon command seems to do nothing (nor even a (...) (18 years ago, 12-Feb-07, to lugnet.robotics, lugnet.robotics.nxt)
|
|
| | Re: Advice on NXT demonstration Project
|
|
Thanks Brian! If the people at this meeting will enjoy this demonstration as cool as my kids did, It will be a major success! And JennToo is amazing! He is simple, cool design, have personality and it is very flexible. If I get some time until (...) (18 years ago, 10-Feb-07, to lugnet.robotics.nxt)
|
|
| | Re: Advice on NXT demonstration Project
|
|
"Brian Davis" <brdavis@iusb.edu> escreveu na mensagem news:JD4JyL.9zA@lugnet.com... (...) Brian, JennToo has a very interesting behaviour in the nest program. (I saw the movie). Is it ask to much for the NXTG code? I did not find it anywhere... (...) (18 years ago, 10-Feb-07, to lugnet.robotics.nxt)
|