Rotation Sensor Counters in NXC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
walduss
Posts: 16
Joined: 24 Apr 2012, 23:18
Location: Canary Islands, Spain
Contact:

Rotation Sensor Counters in NXC

Post 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.
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: Rotation Sensor Counters in NXC

Post by HaWe »

RotationCount is fine,
the rest is used internally by advanced motor control functions which I personally don't use.
walduss
Posts: 16
Joined: 24 Apr 2012, 23:18
Location: Canary Islands, Spain
Contact:

Re: Rotation Sensor Counters in NXC

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

Who is online

Users browsing this forum: Semrush [Bot] and 7 guests