The linear acceleration of an object is calculated as the acceleration of the device minus the force of the earth's gravitational field ( the tilt of the device). Gyro Linear Acceleration uses a complimentary filter to fuse the acceleration sensor and gyroscope sensor together to provide a measurement of the devices linear acceleration. The acceleration sensor alone is not capable of distinguishing true linear acceleration from tilt, or gravity. The gyroscope sensor is used to find the tilt of the device. The tilt angle of the device can then be used to calculate the gravity component of the acceleration that can then be subtracted from the acceleration to find the linear acceleration.
Most people will find that the end-result of this implementation is that, while linear acceleration can be measured while the device is static (not accelerating), linear acceleration cannot be accurately measured while the device is actually under linear acceleration. This is because the complementary filter, which is used to compensate for the drift of the gyroscope, begins to assume the acceleration of the device is actually tilt, skewing the rotation measurements from the gyroscope.
Related to the linear acceleration problem is that the gyroscope sensor can easily drift out of rotation with the device when it is experiencing vibrations or rapid rotations, even with the help of an acceleration sensor. If you modify the complementary filter to quickly compensate for gyroscope drift with the acceleration sensor, you increase the problem of the complimentary filter confusing linear acceleration for tilt when the device is actually accelerating.
Gyro Linear Acceleration may work well for determining linear acceleration for a static device, for instance, that moves a character or vehicle in a game by tilting the device. Gyro Linear Acceleration will not work well for determining the linear acceleration of a vehicle or other object that actually accelerates the device.
Gyro Linear Acceleration will plot the output of the sensor fusion in real-time and will also log the data to an external .CSV file that can be viewed at a later time on any spreadsheet application.
• Plot data in real-time
• Analog gauges to visualize the outputs
• Log the output to an external .CSV file
The app utilizes Rightware's leading Kanzi framework for smooth rendering with HW accelerated 3D graphics. There are two different themes to choose from: traditional style "Adventure" and modern "Marine".
As a bonus, Marine mode contains a damped string suspension with modeled physics for rough conditions. No matter how you move the device, the compass ball just seems to be magically floating in the air.
Download and share freely. If you're interested, the sensor fusion algorithm is open source and available under LGPL license (contact us for more information).
You are welcome to ask questions, discuss and read news about our other apps at http://finweaiapps.blogspot.fi
- The algorithm requires all three movement sensors. Some fairly modern devices in the market do not include gyroscope (for example, Samsung Galaxy Tab 2 10.1).
- Marine mode ball compass is supposed to be viewed from side, not from top. Directions seem opposite if viewed from top.
Stay tuned for other amazing apps from Finwe Ltd.
More from developer
This is still in testing so feel free to give me your suggestions and feedback.
Touch screen controls:
__Top Left - Accelerate
__Middle Left - Rotate Left
__ Bottom Left - Brake
__Middle and Drag - Move Spaceship
____(This will change to be controlled by moving your phone around)
__Top Right - Missile (With missile cam)
__Middle Right - Rotate Right
__Bottom Right - Lasers
Point the phone up to the sky and all the letters come falling down towards you. Touch a letter to hear the sound and drag it to move it around the scene.
Drag the letters around to make and spell your own words to hear each of the letters in the word.
This will keep your kids entertained for hours and reinforce the letters and their sounds.
More function to be added weekly with free updates. Put in your requests in the commments.
1. Sit on the floor
2. Hold the phone with your arms straight towards the sky
3. Now twist right, left, up, down, all around to zap those meteors before they hit the ground.
Note: You may need to orient yourself towards north for the over head camera to line up better with your movements.
Good luck ! Leave suggestions along with your comments along with any requests for different games that could use the gyro function like this.