Need method for trilateration of 3 GPS satellites

AI Thread Summary
To determine the intersection points from three GPS satellites using trilateration, the method involves solving a set of nonlinear equations based on the distances (pseudoranges) from the satellites. The user has identified that a nonlinear least squares approach is necessary due to measurement errors in the pseudoranges. They are seeking assistance with MATLAB, specifically on how to implement the LSQNONLIN function to minimize the error in their calculations. The equations provided outline the relationships between the receiver position and satellite positions, which need to be solved iteratively. Guidance on coding this process in MATLAB is requested to complete the project effectively.
tribaljunkie
Messages
4
Reaction score
0
Can someone please shed some light on the exact method for finding the two points at which the spheres created by the GPS signals from 3 different satellites intersect? I have been working on a uni project for 4 days now and still can't get this relatively simple part of my MATLAB code to work. I realize the 4th satellite is for a time error, but that's not part of my report, i just have the position of that to select the intersection point with the range closest to the pseudorange from the 4th satellite.

the data i have is 4 satellite positions and their corresponding pseudoranges.

if someone could give me the mathematical method, or if you're able even the MATLAB process required as I am a bit rusty with it.

any help much appreciated, cheers.
 
Engineering news on Phys.org
after a bit more research iv found i need to use the non linear least squares method in MATLAB, but still having trouble coding it.

if the ranges from the satellites were perfect i could use the simultaneous equations

0 = (ri_ia(1,1)-ri_is1(1,1))^2+(ri_ia(2,1)-ri_is1(2,1))^2+(ri_ia(3,1)-ri_is1(3,1))^2 - rho_1^2;
0 = (ri_ia(1,1)-ri_is2(1,1))^2+(ri_ia(2,1)-ri_is2(2,1))^2+(ri_ia(3,1)-ri_is2(3,1))^2 - rho_2^2;
0 = (ri_ia(1,1)-ri_is3(1,1))^2+(ri_ia(2,1)-ri_is3(2,1))^2+(ri_ia(3,1)-ri_is3(3,1))^2 - rho_3^2;
0 = (ri_ia(1,1)-ri_is4(1,1))^2+(ri_ia(2,1)-ri_is4(2,1))^2+(ri_ia(3,1)-ri_is4(3,1))^2 - rho_4^2;

where ri_ia is the receiver position (1x3 vector), ri_is is the satellite position (1x3 vector) and rho is the corresponding range from receiver to satellite (scalar). Also rho includes unavoidable errors.

as the measurements are not exact i must use the least squares approach minimising the error dri_ia.

dri_ia1 = (ri_ia(1,1)-ri_is1(1,1))^2+(ri_ia(2,1)-ri_is1(2,1))^2+(ri_ia(3,1)-ri_is1(3,1))^2 - rho_1^2;
dri_ia2 = (ri_ia(1,1)-ri_is2(1,1))^2+(ri_ia(2,1)-ri_is2(2,1))^2+(ri_ia(3,1)-ri_is2(3,1))^2 - rho_2^2;
dri_ia3 = (ri_ia(1,1)-ri_is3(1,1))^2+(ri_ia(2,1)-ri_is3(2,1))^2+(ri_ia(3,1)-ri_is3(3,1))^2 - rho_3^2;
dri_ia4 = (ri_ia(1,1)-ri_is4(1,1))^2+(ri_ia(2,1)-ri_is4(2,1))^2+(ri_ia(3,1)-ri_is4(3,1))^2 - rho_4^2;

thing is i have no idea how to get MATLAB to do this for me, could anyone lend a hand. i know the function is LSQNONLIN but i am not experienced enough with MATLAB to understand the help file and implement it.any help would be great, thanks.
 
Thread 'How can I find the cleanout for my building drain?'
I am a long distance truck driver, but I recently completed a plumbing program with Stratford Career Institute. In the chapter of my textbook Repairing DWV Systems, the author says that if there is a clog in the building drain, one can clear out the clog by using a snake augur or maybe some other type of tool into the cleanout for the building drain. The author said that the cleanout for the building drain is usually near the stack. I live in a duplex townhouse. Just out of curiosity, I...
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
Back
Top