Update frequency of the Hitechnic compass sensor

Discussion specific to the intelligent brick, sensors, motors, and more.
Post Reply
aswin0
Posts: 201
Joined: 29 Sep 2010, 06:58

Update frequency of the Hitechnic compass sensor

Post by aswin0 » 01 Oct 2010, 17:48

Hi,

Does Anyone know how often the registers of the hitechnic compass sensor are updated. I need to know this to tweak my Kalman filter.
My blog: nxttime.wordpress.com

mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Update frequency of the Hitechnic compass sensor

Post by mightor » 01 Oct 2010, 18:14

Aswin,

I'll try to find out for you. I'll keep you posted.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)

mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Update frequency of the Hitechnic compass sensor

Post by mightor » 01 Oct 2010, 19:00

Aswin,

According to HT, it runs at about 80Hz (12.5mS per cycle).

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)

gusjansson
Posts: 18
Joined: 28 Sep 2010, 23:57

Re: Update frequency of the Hitechnic compass sensor

Post by gusjansson » 02 Oct 2010, 14:31

According to HT, it runs at about 80Hz (12.5mS per cycle).

- Xander
Thank you, Xander, for answering this.

This is about as fast as you can read the I2C sensor on the NXT so you should get an updated value every time you read the sensor.

Gus

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests