Not eXactly C, or NXC, is a high-level programming language for the Lego Mindstorms NXT.

learn more… | top users | synonyms

1
vote
1answer
93 views

Help with this .nxc Tripod program

I am getting a file error when I try to run this on my NXT 2.0. It's my first time using NXC and the program compiles and transfers fine... I tried replacing the batteries, the only other thing is ...
9
votes
0answers
262 views

PosRegEnable - How to change motor parameters?

I want to set PID parameters for a faster 'attack' when using PosRegEnablePID() on a motor. I am compiling with nbc/nxc 1.2.1 r4 mac osx fatbinary using -Z2 and -EF flags. But the compiler says: # ...
1
vote
0answers
26 views

How to pass an unknown type as a function parameter in NXC?

I was trying to do it as in a regular C, with void*, but it didn't work. Is it possible to pass it in NXC? If it is- how to do it?
1
vote
0answers
61 views

NXT (NXC) Programs are too slow

I am using Bricx Command Center to write some NXC code for a side project. I am working with the MindSqualls C# Library in Unity and am trying to figure out some ways to use the NXT robots in an event-...
0
votes
0answers
28 views

how to assign values for 2d array in bricxCC?

I use BricxCC to program my NXT robot, and the problem is that I can't figure out how to assign value to 2d array unit after array was initialized. the code looks like this: int map[8][11]= { {...