Skip to content

Commit 5d8968d

Browse files
Fix indentation issue in previous commit
1 parent 12daec6 commit 5d8968d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/rtkcmn.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def __init__(self, cfg):
219219
self.ion = ion_default
220220
self.rb = [0, 0, 0] # base station position in ECEF [m]
221221
self.rr = [0, 0, 0]
222-
self.stat = SOLQ_NONE
222+
self.stat = SOLQ_NONE
223223

224224
# no ant pcv for now
225225
self.ant_pcv = 3*[19*[0]]
@@ -608,11 +608,11 @@ def pos2ecef(pos, isdeg: bool = False):
608608
c_p = cos(pos[0])
609609
s_l = sin(pos[1])
610610
c_l = cos(pos[1])
611-
e2 = rCST.FE_WGS84 * (2.0 - rCST.FE_WGS84)
612-
v = rCST.RE_WGS84 / sqrt(1.0 - e2 * s_p**2)
613-
r = np.array([(v + pos[2]) * c_p*c_l,
614-
(v + pos[2]) * c_p*s_l,
615-
(v * (1.0 - e2) + pos[2]) * s_p])
611+
e2 = rCST.FE_WGS84 * (2.0 - rCST.FE_WGS84)
612+
v = rCST.RE_WGS84 / sqrt(1.0 - e2 * s_p**2)
613+
r = np.array([(v + pos[2]) * c_p*c_l,
614+
(v + pos[2]) * c_p*s_l,
615+
(v * (1.0 - e2) + pos[2]) * s_p])
616616
return r
617617

618618

0 commit comments

Comments
 (0)