yeah you can use these formulas to convert GPS data into xyz coordinates
if you want to find change in position subtract previous value from present value
R=Radius of the earth(6371km),take lattitude and longitude in radians
No that is for spherical coordinate system. WGS 84 is an oblate spheriod coordinate system. So the equations are incorrect.