Search found 358 matches
- 02 Mar 2014, 14:47
- Forum: Robot Building
- Topic: 6wd with double rack-and-pinion steering
- Replies: 28
- Views: 81471
Re: 6wd with double rack-and-pinion steering
Guess what, progress was actually made! No kidding, it actually appears to be done now, 2½ years in the making. Just 2½ years... Anyway, I fixed the gears issue by just bracing it, probably a year ago. It doesn't case any issues, except that I actually managed to snap one of the knob gears in my t...
- 21 Apr 2013, 02:33
- Forum: Mindstorms Software
- Topic: Limits and effciency in switch / case structures
- Replies: 3
- Views: 7587
Re: Limits and effciency in switch / case structures
If the extended firmware still is as it used to be, switches are implemented a bit different from C. In C switches are usually converted to an array, where the case is used as an index, and the value is position to jump to. However the firmware doesn't support jumps based on variables, only constant...
- 21 Apr 2013, 02:01
- Forum: Open Discussion
- Topic: Trying to start up again
- Replies: 2
- Views: 7919
Trying to start up again
It have been so long since I last placed my feet her at Mindboards. More regrettably, I haven't done anything Lego related either for just as long and the 6wd vehicle I started on nearly 2 years ago is still sitting on my self, haunting me to do the finishing touches on it. So I want to do something...
- 10 Nov 2012, 18:30
- Forum: Mindstorms Software
- Topic: [resolved]NXC:bug?feature?printing non-printable-ASCII-chars
- Replies: 18
- Views: 33407
Re: [resolved]NXC:bug?feature?printing non-printable-ASCII-chars
I see there is now a printf() in NXC, I didn't notice that this have been added. I don't know how it is implemented and whether it is ANSI-C compliant or not. Whenever I heard of printf() in the context of NXC, I thought of a simple macro wrapper around FormatVal() and TextOut(). This might have cau...
- 10 Nov 2012, 11:42
- Forum: Mindstorms Software
- Topic: [resolved]NXC:bug?feature?printing non-printable-ASCII-chars
- Replies: 18
- Views: 33407
Re: [resolved]NXC:bug?feature?printing non-printable-ASCII-chars
I just searched around a bit: printf writes formatted data to stdout (i.e., the screen) - so it's a standard C (and even C++ !) command for visualizing data on the screen: http://www.cplusplus.com/reference/clibrary/cstdio/printf/ (Can't check your second link, server is down currently.) The point ...
- 09 Nov 2012, 17:29
- Forum: Mindstorms Software
- Topic: NXC/NBC command line compiling
- Replies: 8
- Views: 17769
Re: NXC/NBC command line compiling
If you are running the commands in that editor, try using the command prompt first, it might behave slightly different. One thing to note though, you can not access the NXT if BCC or any other programs are currently connected to the NXT. Other than that I have really no idea why you can't download, ...
- 09 Nov 2012, 11:16
- Forum: Mindstorms Software
- Topic: NXC/NBC command line compiling
- Replies: 8
- Views: 17769
Re: NXC/NBC command line compiling
You don't even need to specify -S=usb iirc. Just make sure the NXT is connected and recognized by your system. So make sure you have the NXT driver installed, either by installing NXT-G, or by just installing the driver update from the Lego Mindstorms support page. I wrote a bit about how to use nbc...
- 06 Nov 2012, 09:32
- Forum: Mindstorms Software
- Topic: NXC: strncpy
- Replies: 6
- Views: 9819
Re: NXC: strncpy
It is not needed, but it can be quite convenient as you can pass it directly into another function.
That is why many functions which works directly on the input parameter also returns it, to provide more flexibility in its use.
Code: Select all
TextOut( 0,0, strncpy( a, b, x ) );
- 06 Nov 2012, 09:27
- Forum: Mindstorms Software
- Topic: [resolved]NXC:bug?feature?printing non-printable-ASCII-chars
- Replies: 18
- Views: 33407
Re: NXC: bug? feature? when printing non-printable-ASCII-chars
but back to topic... printf() doesn't display anything on your screen what ???? :lol: But it is true. Your OS might display it in some way, however there is no guarantee. In Windows, printf does not produce any output for GUI applications even if you run it from the console (which is not the case o...
- 04 Nov 2012, 12:49
- Forum: Mindstorms Software
- Topic: [resolved]NXC:bug?feature?printing non-printable-ASCII-chars
- Replies: 18
- Views: 33407
Re: NXC: bug? feature? when printing non-printable-ASCII-chars
conio.h is a C header file used in old MS-DOS compilers to create text user interfaces. It is not described in The C Programming Language book, and it is not part of the C standard library, ISO C nor is it defined by POSIX. Well, as standard as Windows.h... It is not portable (that is for me all th...