[iphone] Removing the influence of gravity on accelerometer readings
I have an app that reads acceleration data from the Y axis however when the device is tipped I get bogus readings due to gravity influence.
I'd like to combine the data from another axis (X I believe, I don't have the diagram handy) to negate this effect.
For example, if the phone is laying flat on its back, the Y axis should read 0 and the X axis should read 1g. If one end of the phone is then lifted, the reading on the Y axis should increase (if the top of the device is lifted) and the X axis should decrease.
So I should be able to combine these values mathematically and filter this effect from the "real" acceleration data I'm interested in the Y axis, correct?
I think there would be limits since I imagine beyond a certain point of deflection the readings from the Y accelerometer will become too inaccurate, but if I could compensate for minor changes in device angle that would be sufficient for my application.
I've tried a few approaches to this but either my math skills or some nonlinearity of the accelerometer are leading to unexpected results.
Is this possible, or is there an easier answer to this problem? Any ideas are appreciated.
Thanks!
Some basic trigonometry might help you understand the problem.
You have two sides of a force vector triangle, one is the force of gravity, the other is your accelerometer reading. Unless you have a 3rd known, for instance one of the angles, the triangle solution is ambiguous. You can't solve for the 3rd side. It could be almost anything (from the sum to the difference of the other two side lengths/accelerations).
First order low pass filtering just smoothes, or averages out, the readings of the acceleration value, it doesn't help you with any information about the unknown angle.
So you can't remove the influence of gravity from the accelerometer readings for arbitrary motion.
You could fix one of the angles of the unknown triangle by clamping the device such that it can't be tilted at all when moved. Then solving for acceleration is possible, because you would then have 2 sides plus one angle.
.
Similar Messages
-
I can't send Imessage to my contact numbers it says "not delivered" when using 3G or LTE. I am using iphone 5c I tried to restart my iphone, remove the simcard, reset the network setting it didn't work. Please help. Thank you
ACTIVATING FACETIME AND IMESSAGES
Activating Facetime and Imessages on your phone requires the ability to send SMS messages and depending upon where you are that might be an international SMS. Check with your carrier to see if your plan supports sending of international SMS messages. If you are having trouble activating Facetime or Imessages turn them both off on your device and reset the device (Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost)). Wait for the device to restart and wait a minute and turn Facetime and imessage back on and wait for activation. If that does not fix things read the following articles:
http://support.apple.com/kb/TS4268
http://support.apple.com/kb/ts3367 -
How can my iPhone remove the memory I was sign up to order the app
I just got the iPhone 5s then tried to down load app then I was order the and all my information in there beside I put wrong email that why when they submit it will wrong address I couldn't recive .that why I was re done my account again . Then I done it ... But when I go back to down load the app .that come up the wrong I was sign include my wrong email ?
So what can I do now ????Creating a new Apple ID is a VERY BAD IDEA. If you can't remember your password or your Apple Id, CALL APPLE and they will help you retrieve it.
Once you create an Apple ID and password, IT IS VITALLY IMPORTANT THAT YOU REMEMBER IT! Write it down somewhere. Forgetting this information can cause you to lose all the music, movies, books and applications that you downloaded under that account, AND can even cause your iDevices to be bricked. -
Iphone 3G The connection to the server failed
Help,
I'm recieving the message "The connection to the server failed" I successfully verified the Exchange profile with the OWA server. No error message. However when I go into the Exchange E-mail to sync to gives me the message "the connection to the server failed". I'm running ann Iphone 3G 2.1 on Exchange 2003 SP2. I have hard reset the Iphone, removed the domain name for the profile and even tried to use the Iphone Configuration Web Utility with no luck. I have downloaded the 2 Godaddy Root CA's and 1 intermediate CA to the Iphone. Still no luck. I have played with the Sync options on the phone changing the "mail days to sync" to "No Limit"
Any idea?My issue has been resolved! First I had to install the CA root for my self signed cert by going to https://servername/certsrv/ on my iPhone.
Then I had to follow this Microsoft KB article: http://support.microsoft.com/?kbid=817379
SSL does not play nice with Active Sync. This provides the work around.
Then I had to install a hotfix: http://support.microsoft.com/kb/916640
This allows Push mail to resume after the SSL Active Sync work around has been evoked.
After these three things were completed, I now have a 100% working Exhange Push / iPhone set up.
I thought I was going to kill myself in frustration trying to figure out the solution. Not to mention I could not find a single location that explained all three magic keys in one simple location.
I hope this helps others. -
how do i remove the songs from my iphone used to be easy with old version of itunes just unticked them but cant seem to find it any where on new version
how do i remove the songs from my iphone used to be easy with old version of itunes just unticked them but cant seem to find it any where on new version
-
i have just switched to samsung and i have removed the sim from the iphone however i am still receiving texts rather 'imessage' on the old iphone. how do i make sure all messages only come to my new phone??
You can turn iMessage off on your iPhone. That's relatively easy. Since iMessage is an Apple product/service, I have no idea how a Samsung phone will deal with an incoming one. For that answer you should probably contact Samsung support.
-
I tried to update to the latest software for the iPhone 4 today, May 16th. After removing the software, I received an error message from iTunes and now my phone has no software and useless for everything including a phone call. I immediately went to Restore it to my last saved version and 4 hours later, I still have "iTunes is restoring the software on this iPhone. I am frustrated beyond belief as this happend twice when I had a 3G. Does anyone know how long it should take for a Restore on an iPhone 4 16 gb? Or if there is a fix for this? I'm about to throw away the phone and give up on iPhones forever. Thanks for any help you can give.
Hi NWL1,
Thanks for the question. If I understand correctly, the iPhone won't update and is stuck. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
Thanks for using Apple Support Communities.
Have a great day,
Mario -
My iPhone, iPad and iPod are all associated with the same Apple ID. How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?
Very simple. Turn off Find my iDevice, then Tap Settings, General, Erase, Erase all content and settings.
-
My son and I both have iphones with the same Apple ID. Since I installed iOS this morning I have started receiving all my sons texts and when I send him a text it is delivered to both of us. How can I remove my phone from the joint Apple ID and remove myself from finding out what he is up to during Freshers week!
You have to use a different Apple ID for your son.
Read this note:
iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family
still valid for ios 7 -
I had an iphone 4 on Sprint. I switched to Verizon and purchased a 5S. Kept the same phone number and affiliated the new phone to my existing icloud ID. How do I remove the old device from my icloud ID?
and this if not already done
iCloud: Remove your device from Find My iPhone -
I bought a phone from a person on ebay. the phone was working fine until i locked myself out (forgot my passcode), upon restoring the iphone through itunes, it asks for an apple id for the person who activated the iphone. I the seller doesnt know the information and neither do i. Is there any way I can get the owners email that activated it? [email protected]. thats all it says and I would love to contact him and guide him through removing the device from his list.
kyle37055 wrote:
that sounds like a massive flaw in apple's programming. something needs to be done to allow an automated email to be sent to the person who locked it to allow them to remove it or something.
well this is definately the last apple product i buy, thanks you guys for your information
Unbelievable. -
In My iphone 5s,i have disabled automatic download from whatsapp app.So whichever images,video i feel is good i download them and then save them to my camera roll section.So i want to know how can i remove the images from cache of my phone which are downloaded and not saved,but they remain in cache.
Even in some apps i have data which i want to remove,but cant find a way to remove them and they are in my cache eating up my memory.Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.
-
How do I remove the previous owner's Apple ID from my 2nd hand iPhone, and replace it with my Apple ID?
settings - appstore - view id - log out and log in with your id.
-
How can I remove the Yahoo icon from my iphone?
How can I remove the Yahoo icon from my iphone?
This is covered in the manual.
iPhone User Guide (For iOS 4.2 and 4.3 Software)
Hold an icon until they all wiggle, then tap the "x" in the corner. -
How do I remove the music in my iphone?
How do I remove the music in my iphone?
Since there is IOS 7.0 , deleting music like you guys are describing in not possible anymore.
The only way to delete music completely, is to sync. with Itunes on your PC/Mac.
Then you can remove or add music to your liking.
I discovered this short after installing 7.01, when my Iphone 4s was completely full with pictures and music.
Maybe you are looking for
-
States not displaying in Components
Hello all I just created a main page - in which I created three views like this... <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:views="com.views.*"> <views:Login /> <views:Member /> </mx:Application> Now in my LoginScreen
-
When using the search box in the upper right corner: I get a response that lists a number of albums/songs/etc. But, when I click "show more" nothing happens. This field seems to be grayed out. Also, if I click on the "+" sign, it does not add the
-
Turn colored pdf text to monochrome pdf
I want to print a pdf which contains coloured text to a b/w printer. Text now becomes unreadable greyscale. Is there a way to convert every text color in a pdf (or postscript) file to pure black? So not greyscale like in Acrobat, but 100% black? I'm
-
Importing DV files from HD tape camera into one file
Hi there, I have an old sony HD Cam using DV tapes. I am capturing those tapes into Final Cut Pro to keep the original files in a .mov format, but when I do that, Final Cut slices the movie in 100 little pieces. I would like to know if there is a way
-
My Ipod touch displays white lines across my entire screen. I've turned it on and off and it still hasn't cleared up.HELP!?!