Tell me more ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

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:

# Error: Undefined Identifier PosRegEnablePID

How can I set PID parameters for PosReg?

PosRegEnable(OUT_A);

compiles just fine...

share|improve this question
3  
You may want to specify an actual version number instead of "latest" which is meaningless. According to this page, you'll need version 1.2.1 r4; and if not, you'll need to include the appropriate posreg.h header file. And you'll probably need that particular firmware, too. – Joubarc Apr 19 '12 at 9:59
I added the version. – Antonvh Apr 19 '12 at 10:58
I know that the website says it is only for older versions, but have you tried posreg.h? – Joshua Drake Jun 1 '12 at 12:58
Also, would you mind posting your sample code? – Joshua Drake Jun 1 '12 at 12:59

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.