Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8178423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:45:48+00:00 2026-06-06T23:45:48+00:00

I have sensor data that I’ve calculated from an Android phone. I take and

  • 0

I have sensor data that I’ve calculated from an Android phone. I take and perform transformations using a matrix on the xyz coordinates. I then take the acceleration that I got from the phone to find the velocity and displacement. Here is my code to find displacement and velocity. It is always the be the corresponding previous value:

 velocity[e]   = (accel[e-3]) * (time[i]-time[i-1])+velocity[e-3];

 velocity[e+1] = (accel[e-2]) * (time[i]-time[i-1]) +velocity[e-2];

 velocity[e+2] = (accel[e-1]) * (time[i]-time[i-1])+ velocity[e-1];



      displacement[e] = (velocity[e-3])*(time[i]-time[i-1])+.5*(accel[e-3])*pow((time[i]-time[i-1]),2) + displacement[e-3];
      displacement[e+1] = (velocity[e-2])*(time[i]-time[i-1])+.5*(accel[e-2])*pow((time[i]-time[i-1]),2) + displacement[e-2];
      displacement[e+2] = (velocity[e-1])*(time[i]-time[i-1])+.5*(accel[e-1])*pow((time[i]-time[i-1]),2) + displacement[e-1];

However i am getting getting numbers like -3436.0 19206.2 11373.5 for the displacement which should not be nearly that high. I even made a test file to test my formula and everything was right in terms of the numbers I got. However, it doesn’t work the same with real data. Also, I read something about removing the mean from the acceleration, velocity, and displacement but don’t quite understand that so can someone explain a solution please to getting the right numbers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:45:50+00:00Added an answer on June 6, 2026 at 11:45 pm

    It won’t work, these sensors are not accurate enough to calculate the position.

    It’s amazing how many times this question comes up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Service that continuously collects sensor data on the phone. This service
I have NSMutable array that holds data captured from external sensor through iphone. I
We have a data collection system that collects measurements from environmental sensors that measure
Do we have temperature sensor in windows phone 7 That notes the Outside Atmospheric
I am reading data continuously from a sensor and want to plot chart using
I have a binary log file with streaming data from a sensor (Int16). Every
I'm sending sensor data from an android device to a TCP server in C#.
I have a DB of sensor data that is being collected every second. The
Dear all, I have a data frame which comes directly from a sensor. The
I created an Android app that serves the touch screen sensor data to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.