Search found 14 matches

by afanofosc_99
04 Aug 2013, 14:15
Forum: Mindstorms Software
Topic: Problem Compiling Bricxcc SVN on Fedora 19
Replies: 5
Views: 9374

Re: Problem Compiling Bricxcc SVN on Fedora 19

This is happening because I declare a TBytes type and use it in my code but newer versions of Free Pascal also declare TBytes in a unit that my code uses and the two types are considered by the compiler to be unique. Depending on the order of includes a unit will use one vs the other. In my code I r...
by afanofosc_99
28 May 2013, 00:06
Forum: Mindstorms Software
Topic: transcoding RobotC -> NXC
Replies: 14
Views: 22414

Re: transcoding RobotC -> NXC

Please, Doc, no need to argue with anyone. Everything you show can be done with RotateMotorEx in NXC. #define MOTOR_POWER 60 int nSyncedTurnRatio; /************************* Motion planning functions *****************************/ // void do_move(tMotor m, int d) - Command the motor m to move throug...
by afanofosc_99
11 Feb 2012, 00:59
Forum: Mindstorms Software
Topic: [NXC] Check if pixel is on/off?
Replies: 11
Views: 16834

Re: [NXC] Check if pixel is on/off?

You read a byte of screen memory that contains the pixel that you want to check (no way currently to read just a single pixel) and then you check to see if that pixel's bit is set in the byte you read. This seems to work okay: bool isPixelSet(byte X, byte Y) { byte masks[] = {0x80, 0x40, 0x20, 0x10,...
by afanofosc_99
07 Aug 2011, 23:58
Forum: Mindstorms Software
Topic: BricxCC/NBC test release 2011-07-19
Replies: 41
Views: 36727

Re: BricxCC/NBC test release 2011-07-19

Dear afanofosc I have a digital scope too, 200MHz capable, how could I help? Could you provide a test firmware with the speedy i2c, and a test program able to expose the behaviour you try to catch. Best regards ben I've been feverishly trying to finish up a project that has delayed posting a new te...
by afanofosc_99
07 Aug 2011, 23:56
Forum: Mindstorms Software
Topic: BricxCC/NBC test release 2011-07-19
Replies: 41
Views: 36727

Re: BricxCC/NBC test release 2011-07-19

muntoo wrote: EDIT: Also, the output NBC code has a lot of duplicate identifiers. You might wanna fix that. :)
EDIT 2: Attached shorter version (still a bit long) that still gives me trouble.
There should not be any duplicate identifiers. Can you elaborate?

John Hansen
by afanofosc_99
24 May 2011, 17:23
Forum: Mindstorms Software
Topic: Inline error
Replies: 16
Views: 17212

Re: Inline error

Yeah, I don't know what I was thinking. The hand coded min3 would be more optimal than the nested macro version. I would still use the nested macro version rather than writing multiple "min" functions that take various numbers of parameters.

John Hansen
by afanofosc_99
24 May 2011, 17:15
Forum: Mindstorms Software
Topic: NXT access via USB on OSX
Replies: 35
Views: 40974

Re: NXT access via USB on OSX

I'm not using XCode, I'm using Eclipse, so that didn't really apply, but it doesn't matter. It seems that while fantom needs you to link to the VISA framework as a dylib, if you want to use the VISA header files you need to link to it as a framework (i.e. -framework VISA in your Makefile). The NI-V...
by afanofosc_99
25 Apr 2011, 03:30
Forum: Mindstorms Hardware
Topic: Dexter Industries NXTBees & NXC
Replies: 8
Views: 11874

Re: Dexter Industries NXTBees & NXC

My RS-485 programs and lib. are based on raw strings, please keep supporting it, or I will have to rewrite my code. I don't mind the idea of direct commands, and all this new jazz, but please do not drop the only part I use. Other users may be having problems but are you having any trouble with the...
by afanofosc_99
15 Mar 2011, 21:34
Forum: Mindstorms Software
Topic: New BricxCC and NBC/NXC release
Replies: 45
Views: 41461

Re: New BricxCC and NBC/NXC release

The NXC templates included in the 3.3.8.9 release have many additions and updates compared to the templates included in 3.3.8.8.

John Hansen
by afanofosc_99
15 Mar 2011, 21:26
Forum: Mindstorms Software
Topic: New BricxCC and NBC/NXC release
Replies: 45
Views: 41461

Re: New BricxCC and NBC/NXC release

My afanofosc_99 account is my original BricxCC SF project admin account. It also lets me post here but not as an admin. Sometimes I forget to log out of the one and into the other. My apologies!

John Hansen