Rotation Sensor Counters in NXC
Posted: 16 Jun 2012, 11:08
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.
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.