Page 3 of 3

Re: Absolute Position Regulation Tips [NXC]

Posted: 02 Apr 2012, 18:17
by schodet
h-g-t wrote:Just wanted to say that I finally bit the bullet and used the new motor regulation.
Thank you very much Mr Schodet! :D :D :D
Thank you :)
h-g-t wrote:Can I read one of the rotation counters to get the absolute values without cancelling the positive regulation mode?
Sure, you can use:

Code: Select all

GetOutput (the_output, TachoLimit);
to read the current requested position.

Actually, PosRegAddAngle (the_output, 10) is equivalent to PosRegSetAngle (the_output, GetOutput (the_output, TachoLimit) + 10).

Re: Absolute Position Regulation Tips [NXC]

Posted: 07 Apr 2012, 08:12
by h-g-t
Are ther any specific commands to disable regulation?

If not, which 'normal' commands will disable it?

Re: Absolute Position Regulation Tips [NXC]

Posted: 13 Apr 2012, 13:03
by h-g-t
OK, let me rephrase the question.

If I want to reset the starting position for positive regulation -

1. Do I have to disable then re-enable regulation (if so, how)?

2. Can I just re-use the 'enable positive regulation' code and this automatically resets the starting point?

Advice appreciated as it affects how I write the program.

Re: Absolute Position Regulation Tips [NXC]

Posted: 15 Apr 2012, 20:13
by schodet
h-g-t wrote:OK, let me rephrase the question.
If I want to reset the starting position for positive regulation -
1. Do I have to disable then re-enable regulation (if so, how)?
2. Can I just re-use the 'enable positive regulation' code and this automatically resets the starting point?
Advice appreciated as it affects how I write the program.
Yes, calling PosRegEnable will reset everything.

Re: Absolute Position Regulation Tips [NXC]

Posted: 15 Apr 2012, 21:58
by h-g-t
Thank you - appreciate your help.