<p>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.</p>

<p>But the compiler says: </p>

<p><code># Error: Undefined Identifier PosRegEnablePID</code></p>

<p>How can I set PID parameters for PosReg?</p>

<pre><code>PosRegEnable(OUT_A);
</code></pre>

<p>compiles just fine...</p>

CC BY-SA 3.0
2012-06-01T12:58:34.823Z
I know that the website says it is only for older versions, but have you tried `posreg.h`?
Joshua Drake
CC BY-SA 3.0
2012-06-01T12:59:00.393Z
Also, would you mind posting your sample code?
Joshua Drake
CC BY-SA 3.0
2016-12-09T18:30:53.810Z
I've closed this question because without further information it doesn't appear to be resolvable.
jncraton
<nxt><mindstorms><programming><nxc>
PosRegEnable - How to change motor parameters?
Antonvh
# PosRegEnable - How to change motor parameters?

(Asked by: username_0 on 2012-04-16)

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...

**Tags:** nxt, mindstorms, programming, nxc

> **Comments:**
> **username_1**: I know that the website says it is only for older versions, but have you tried `posreg.h`?  
> **username_1**: Also, would you mind posting your sample code?  
> **username_2**: I've closed this question because without further information it doesn't appear to be resolvable.  

---

## 0 answers

