Page 5 of 25

Re: wishlist for NXC

Posted: 11 Jan 2011, 20:56
by nxtboyiii
Ok. Thanks for replying.

Re: wishlist for NXC

Posted: 16 Jan 2011, 09:30
by HaWe
hi,
when will be released the next NXC/Bricx version, and what kind of things will be new or updated?

Re: wishlist for NXC

Posted: 17 Jan 2011, 06:54
by nxt-ai
Is nxtcom under the control of nxc/nbc? On Linux I have no idea of how to download programs as well as on Windows cmd "shell". I assume others have this problem too.

Re: wishlist for NXC

Posted: 17 Jan 2011, 18:45
by m-goldberg
nxt-ai wrote:Is nxtcom under the control of nxc/nbc? On Linux I have no idea of how to download programs as well as on Windows cmd "shell". I assume others have this problem too.
You don't need nxtcom anymore. The compiler can both download and download and run programs directly when it finishes compiling. Look at the -d and -r compiler switches (execute "nbc -help"). This works on the Mac and I presume it will work on Linux as well.

Re: wishlist for NXC

Posted: 17 Jan 2011, 23:06
by nxt-ai
m-goldberg wrote:You don't need nxtcom anymore. The compiler can both download and download and run programs directly when it finishes compiling. Look at the -d and -r compiler switches (execute "nbc -help"). This works on the Mac and I presume it will work on Linux as well.
Last I tried It did nothing, also the -b flag didn't work and it kept saying it had a compiler error (duh it was already compiled).
Does linux need a fantom driver, as well?

Re: wishlist for NXC

Posted: 18 Jan 2011, 01:31
by afanofosc
On linux I wrote a lib-usb and bluetooth serial port implementation of the Fantom driver so that nbc can talk to the NXT. On Mac OSX and Windows I just linked to the existing Fantom driver libraries. If -d and so forth are not working correctly on Mac OSX then I have to fix that problem. Can you give me a source file and a command line to try which is not working for you? Are you using the nxt.dat file in ~ to provide the correct connection information along with -S=usb|alias|brick_resource_string ?

Re: wishlist for NXC

Posted: 18 Jan 2011, 07:14
by m-goldberg
afanofosc wrote:On linux I wrote a lib-usb and bluetooth serial port implementation of the Fantom driver so that nbc can talk to the NXT. On Mac OSX and Windows I just linked to the existing Fantom driver libraries. If -d and so forth are not working correctly on Mac OSX then I have to fix that problem. Can you give me a source file and a command line to try which is not working for you? Are you using the nxt.dat file in ~ to provide the correct connection information along with -S=usb|alias|brick_resource_string ?
The -d and -r switches work fine on OS X. I use them all the time. I think the question is whether they also work on Linux.

Re: wishlist for NXC

Posted: 18 Jan 2011, 18:17
by schodet
m-goldberg wrote:The -d and -r switches work fine on OS X. I use them all the time. I think the question is whether they also work on Linux.
They do, I use them all the time.

Re: wishlist for NXC

Posted: 19 Jan 2011, 13:18
by HaWe
hi,
is there a qsort in NXC or sth similar (insertion sort, even a bubble sort)?

Re: wishlist for NXC

Posted: 19 Jan 2011, 13:29
by mightor
Should be fairly trivial to implement in either NBC or NXC, I would say. It would be really dependant on the types you're looking to sort. A qsort for longs would not work for floats, for example.

- Xander