61466B
March 25, 2023, 9:55pm
#1
If Acceleration is equal to the change in velocity over the change in time, and Velocity is equal to the change in distance over change in time, wouldn’t it be possible to calculate the distance traveled from the inertial sensor?
Theoretically yes, in practice no (or at least results have not been very accurate).
I had an idea, could you measure distance with the inertial sensor? The inertial sensor gives you acceleration which could be turned into velocity. @7996D_CarsonW and I made a simple code to try and test it out but, we can’t get it to print any value on the brain and when we print the raw acceleration form the inertial sensor it says 0.
double Acceleration = 0.0;
double CurrentAcceleration = 0.0; // Acceleration in m/s
float TimeStep = 0.01; //Seconds
double CurrentVelocity = 0.0;
double Pre…
8 Likes
61466B
March 25, 2023, 10:10pm
#3
Oops, I didn’t see that post, thanks.
1 Like