Sensor Fusion: what sensors are needed to find the rotation vector?

Background . My goal is to figure out the tilt angles of the phone, for example for a game where flipping the phone back means "stepping on the gas" and leaning left / right means turning the steering wheel left and right.

I was watching this conversation about sensor fusion between different android sensors.

Based on the very end of the conversation, it seems that I can use "vectors from the rotation matrix to figure out how I am pointing".

Question . By this they imply that the correct approach to obtain these angles would be "Using a Rotary Vector Sensor" / TYPE _ROTATION_VECTOR ?

If so, now I ask the question: What sensors should the device use to use the sensor TYPE_ROTATION_VECTOR

? My guess is an accelerometer for the initial values ​​plus a gyroscope for correction (plus an optional compass for additional correction)?

Additional lending issue . Can I find a list of devices that match these criteria? and / or does anyone have a suggestion for a super cheap device that has the required sensors?

+3


source to share


1 answer


The short answer is:

Rotation vector sensor: accelerometer, gyroscope and geomagnetic field.

Game rotation vector sensor: accelerometer and gyroscope.

Vector rotation geomagnetic vector: accelerometer and geomagnetic field.

Long answer:

According to the Sensor Documentation, the rotation vector uses an accelerometer as well as a gyroscope and geomagnetic field to calibrate absolute rotation.



They also provided a vector of rotation vector and geomagnetic rotation sensor , which are very similar to it, but different from each other and are often used for different purposes.

The game's rotation vector vector uses a gyroscope for calibration and measures relative rotations better and does not affect magnetic field changes.

The geomagnetic rotation vector sensor uses a magnetometer instead of a magnetometer for calibration, so energy consumption is reduced. And it is suggested to be used in the background and in combination with dispensing.

Most devices now have a 9-axis IMU, which includes an accelerometer, gyroscope, and x 3-axis magnetometer. Thus, you should make good use of this sensor. The only problem is that perhaps some of the devices do not provide implementation of the above "soft sensors", so you may need to merge sensors yourself.

Hope this helps!

+3


source







All Articles