Page 1 of 1

NXC: how to SetRotationCount(OUT_A, longval) ?

Posted: 12 Nov 2011, 12:27
by HaWe
hi,
how can I set (patch) a RotationCount to a certain value?
by

Code: Select all

ResetRotationCount(OUT_A); 
I can set it to zero.

But if I want to set it e.g. to 300:

Code: Select all

SetRotationCount(OUT_A, 300);
how can I do this?

Re: NXC: how to SetRotationCount(OUT_A, longval) ?

Posted: 12 Nov 2011, 13:09
by mattallen37
I don't think you can. The best way to mimic this behavior is to use offsets.

Re: NXC: how to SetRotationCount(OUT_A, longval) ?

Posted: 13 Nov 2011, 15:31
by afanofosc
The firmware does not allow you to write to any of the tachometer fields of the Output module IOMap other than to reset the count to zero.

John Hansen

Re: NXC: how to SetRotationCount(OUT_A, longval) ?

Posted: 13 Nov 2011, 19:21
by HaWe
a pity, but thank you for replying!