Answers.Body: <p>According to the docs (emphasis added):</p>
  
  <blockquote>
    <p>Warning</p>
    
    <p>This function requires the <strong>enhanced</strong> NBC/NXC firmware version 1.31+</p>
  </blockquote>
  
  <p>Make sure you are using the <strong>enhanced</strong> firmware provided with NXC and not the <em>official</em> firmware from LEGO.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-19T19:19:17.433Z
Answers.LastActivityDate: 2016-05-19T19:19:17.433Z
Answers.UserDisplayName: David Lechner
Body: <p>I am trying to position the LEGO NXT motor exactly at a certain absolute angle:</p>
  
  <pre><code>PosRegEnable (OUT_A);  
  PosRegSetAngle (OUT_A, 0);  
  Wait (500);                  // to read sensor value  
  PosRegSetAngle (OUT_A, 90);  
  Wait (500);                  // to read sensor value  
  PosRegSetAngle (OUT_A, 180);  
  Wait (500);                  // to read sensor value  
  </code></pre>
  
  <p>My Brick has V1.31 firmware.</p>
  
  <p>When I load this program and run it, it doesn't display any error but the motor doesn't run.</p>
  
  <p>Has someone experienced this before?</p>
  
Tags: <nxt><nxc>
Title: Absolute position regulation NXC
UserDisplayName: vamshi krishna
ThreadText: # Absolute position regulation NXC
  
  (Asked by: username_0 on 2016-05-19)
  
  I am trying to position the LEGO NXT motor exactly at a certain absolute angle:
  PosRegEnable (OUT_A);  
  PosRegSetAngle (OUT_A, 0);  
  Wait (500);                  // to read sensor value  
  PosRegSetAngle (OUT_A, 90);  
  Wait (500);                  // to read sensor value  
  PosRegSetAngle (OUT_A, 180);  
  Wait (500);                  // to read sensor value  
  
  My Brick has V1.31 firmware.
  When I load this program and run it, it doesn't display any error but the motor doesn't run.
  Has someone experienced this before?
  
  **Tags:** nxt, nxc
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-05-19. Score: 2 | Accepted answer
  
  According to the docs (emphasis added):
  
  > Warning
  >
  > This function requires the **enhanced** NBC/NXC firmware version 1.31+
  
  Make sure you are using the **enhanced** firmware provided with NXC and not the *official* firmware from LEGO.
  
  
  ---
  
  