Commit b1421e30 authored by behrajor's avatar behrajor

ajout de l'erreur sur la position

parent e20b7a0e
......@@ -22,12 +22,11 @@ eP = 7
eC = -1
eE = 4
eHC = 4
eR = -30
#coefficients de l'erreur vairable (considéré linéaire) :
eAr = -0.049
eBr = 34.9
eAz = -0.136
eBz = 21.6
er = 30
eAz = -2.4E-3
eBz = 0.581
eCz = -20.7
#Constante de longueur :
L1 = 146
......@@ -43,10 +42,13 @@ def calculAngles(x, y, z):
r = sqrt(pow(x, 2)+pow(y, 2))
#En prenant en compte l'erreur proportionnelle :
r = (r - eBr)/(1-eAr)
z = z + eAz * r - eBz
r -= er
print("er : {}".format(er))
print("r : {}".format(r))
z = z - eAz * pow(r, 2) - eBz * r - eCz
print("z : {}".format(z))
L = sqrt(pow(x, 2)+pow(y, 2)+pow(z, 2))
L = sqrt(pow(r, 2)+pow(z, 2))
L3 = (pow(L, 2)-pow(L2, 2)+pow(L1, 2))/(2*L)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment