Not eXactly C, or NXC, is a high-level programming language for the Lego Mindstorms NXT.
7
votes
1answer
192 views
NXC Saturation algorithm for limiting motors?
What is a good algorithm in NXC for control saturation? I want to make sure my motors don't turn past a certain angle, or they will break the model.
I could do something like:
if (angle > 45) ...
5
votes
0answers
131 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:
# ...