Search found 30 matches

Return to advanced search

Re: Help with "Text Contains"

Hi John, I'd certainly welcome a strstr() function, or some equivalent to the PERL split() function. I spent an (enjoyable) afternoon coding a simple text line parser that could parse lines of configuration data from a file (in the format index=x,y). The resulting code looked ugly, but without a str...
by markcrosbie
30 Nov 2010, 22:46
 
Forum: Mindstorms Software
Topic: Help with "Text Contains"
Replies: 12
Views: 5494

What are linear files in NXC?

Hi all, I've searched the NXC documentation and LEGO firmware spec documents, and I can't find anything that explains the difference between a linear and non-linear file. I see that there are parallel open/read/write/close functions for both file types, but that is the difference? When should a line...
by markcrosbie
30 Nov 2010, 22:40
 
Forum: Mindstorms Software
Topic: What are linear files in NXC?
Replies: 9
Views: 3615

Re: NXC Reading and writing arrays.

This has turned into a really interesting conversation, because we're ultimately discussing how to serialize data structures (which anyone who has programmed Java, RPC or CORBA is familiar with). In some programming languages it is possible for data types to serialize themselves (e.g. Java) if they ...
by markcrosbie
30 Nov 2010, 22:29
 
Forum: Mindstorms Software
Topic: NXC Reading and writing arrays.
Replies: 14
Views: 7039

Re: NXC on Xcode?

Hi Fuzzball, Let's take a step back here and ensure we're all on the same page. Apologies in advance if you are an experienced programmer already, as I don't mean offense. XCode is a fully featured development environment for Mac OS. You can use it to build GUI-driven programs, command line programs...
by markcrosbie
23 Nov 2010, 22:29
 
Forum: Mindstorms Software
Topic: NXC on Xcode?
Replies: 9
Views: 4118

Re: NXC on Xcode?

Hi Fuzzball, What exactly are you looking from XCode? Do you want a syntax highlighting editor? There are many good editors available that do syntax highlighting (I use Smultron, just a personal preference). Or do you want XCode to actually build the NXC programs for you? For that you'll have to edi...
by markcrosbie
23 Nov 2010, 13:43
 
Forum: Mindstorms Software
Topic: NXC on Xcode?
Replies: 9
Views: 4118

Re: How to detect all stalled motor

Here's a little NXC program I wrote up to detect a stall by running a watchdog task in the background to monitor the delta change in rotation encoder values. The assumption is that if you are moving then you will see a change in these values. In practice I have found that the NXT motors have such a ...
by markcrosbie
22 Nov 2010, 15:32
 
Forum: Mindstorms Projects
Topic: How to detect all stalled motor
Replies: 11
Views: 5412

Compiling LPub4 for Mac OS - tutorial and call for testers

Hi everyone, I wrote a tutorial on how to compile the latest LPub4 sources for Mac OS using XCode - the native Mac development environment. As any LPub users for a Mac will know, the Mac versions have lagged the Windows releases as Kevin does all of the LPub development on Windows. So I stepped in t...
by markcrosbie
22 Nov 2010, 14:35
 
Forum: Mindstorms Software
Topic: Compiling LPub4 for Mac OS - tutorial and call for testers
Replies: 0
Views: 637

Re: NXT System for Dog Flower Girl

How about mounting the NXT on a small trailer and have the dog pull that along? Sort of like a horse pulling a cart, but on a smaller scale? That way you avoid having to rivet anything to the dog, the NXT is on a stable base, and the dog isn't freaked out by having something on its back.

Mark
by markcrosbie
18 Oct 2010, 22:48
 
Forum: Robot Building
Topic: NXT System for Dog Flower Girl
Replies: 7
Views: 5255

Re: Welcome to Mindboards

Hey Andy,

I wrote a tutorial for Bluetooth on Mac OS 10.5.8. Granted it's talking to pbLua, but maybe it's of some use to you.

http://www.mastincrosbie.com/Marks_LEGO_projects/pbLua_Bluetooth_on_Mac_OS_X_Leopard.html

Regards,
Mark
by markcrosbie
30 Sep 2010, 17:59
 
Forum: Open Discussion
Topic: Welcome to Mindboards
Replies: 47
Views: 28103

Re: Welcome to Mindboards

Great work guys - thanks for setting this up for everyone! The old NXTasy site had a "repository" of code and building instructions that I always found useful. Is there a facility in phpBB to do something similar? It strikes me that a knowledge-base of techniques, snippets of code, buildin...
by markcrosbie
30 Sep 2010, 10:01
 
Forum: Open Discussion
Topic: Welcome to Mindboards
Replies: 47
Views: 28103
Previous

Return to advanced search

cron