Converting yaw pitch and roll to spherical coordinates

4 replies · 5K views · last reply
Hadar Szostak
Messages
3
Reaction score
0
hi guys,
can someone please tell me how to find Theta and Phi from Yaw Pitch and Roll?
I use my smartphone orientation sensor on a project and i need to calculate the smartphone's normal vector projection.
 
First you must tell us how you want to orient the spherical system in space. Then maybe the question can be answered.
 
sorry but what do you mean by "orient the spherical system in space"?
 
Do you want the polar axis to represent your roll axis, or perhaps your yaw axis? Define how the polar coordinate system is to be related to the roll, pitch, and yaw axes.
 
oh sorry,
yaw is around Z axis
pitch is around x axis
roll is around y axis
Diagram of a smartphone in 3D with labelled axes x, y and z, curved arrows marking Roll about the y axis, Pitch about the x axis, and Azimuth as a rotation arrow.