Page 1 of 1

Rotation Sensor Counters in NXC

Posted: 16 Jun 2012, 11:08
by walduss
Hi,

In NXT-G there is a Rotation Sensor Block that contain a Rotation Counter that can be Reset by the user.

I am trying to do the same in NXC but I have some doubts.

reading API documentation I have found that OnFwdEx() could reset the counter. But I am surprised because It seems that there are more than one Counter (RESET_COUNT, RESET_BLOCK_COUNT, RESET_ROTATION_COUNT)

Which of them I should use (I mean, which is the same that It is used in NXT-G)?
Is there any place with information about this counter? When should I use each of them?

Any information will be apreciated?

Thanks.

Re: Rotation Sensor Counters in NXC

Posted: 16 Jun 2012, 11:33
by HaWe
RotationCount is fine,
the rest is used internally by advanced motor control functions which I personally don't use.

Re: Rotation Sensor Counters in NXC

Posted: 16 Jun 2012, 22:09
by walduss
doc-helmut wrote:RotationCount is fine,
the rest is used internally by advanced motor control functions which I personally don't use.
Thanks, by the time been I will use RotationCount in my initial test.