Hello, EEVBlog users !
Always thank you for your kind help and time.
I want make acceleration data through convert (Lat, Long to X, Y, Z).
but, i can't figure out how i can put "gravity" to X, Y, Z equations
to make acceleration data.
if latitude and longitude is,
Lat = [-30:2:30];
Long = [-90:1:90];
i can make latitude and longitude as follows,
lat = lat * pi/180;
long = long * pi/180;
phi = pi/2 - lat;
theta = long;
than, XYZ is
x = sin(phi) * cos(theta);
y = sin(phi) * sin(theta);
z = cos(phi);
Can I add g like this?
g = [ 0 0 9.8 ];
Acc_x = -g * sin(phi) * cos(theta);
Acc_y = g * sin(phi) * sin(theta);
Acc_z = -g * cos(phi);
I am so sorry, my question is so vague.
If you don't mind, could you give to me advise ?
Thanks you for reading, !
Please, let me know !