Skip to content
Snippets Groups Projects
Commit a31a306f authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

sagnac add/substract option

parent 8d6e6aaa
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
This commit is part of merge request !20. Comments created here will be created in the context of that merge request.
...@@ -17,7 +17,7 @@ struct TdcpBatchParams ...@@ -17,7 +17,7 @@ struct TdcpBatchParams
bool relinearize_jacobian; bool relinearize_jacobian;
int max_iterations; int max_iterations;
int residual_opt; // 0: Normalized RMS of residual vector. 1: Max residual in Mahalanobis squared distance int residual_opt; // 0: Normalized RMS of residual vector. 1: Max residual in Mahalanobis squared distance
bool sagnac_correction; int sagnac_correction; // 0 deactivated, 1/2 substraction/addition
}; };
struct TdcpOutput struct TdcpOutput
......
...@@ -246,11 +246,15 @@ TdcpOutput Tdcp(SnapshotPtr snapshot_r, ...@@ -246,11 +246,15 @@ TdcpOutput Tdcp(SnapshotPtr snapshot_r,
} }
// sagnac corrections // sagnac corrections
if (tdcp_params.sagnac_correction) if (tdcp_params.sagnac_correction != 0)
{ {
double sagnac_corr_r = computeSagnacCorrection(x_r,s_r); //OMGE*(s_r.col(row)(0)*x_r(1)-s_r.col(row)(1)*x_r(0))/CLIGHT; double sagnac_corr_r = computeSagnacCorrection(x_r,s_r); //OMGE*(s_r.col(row)(0)*x_r(1)-s_r.col(row)(1)*x_r(0))/CLIGHT;
double sagnac_corr_k = computeSagnacCorrection(x_r,s_k); //OMGE*(s_k.col(row)(0)*(x_r(1)+d_0(1))-s_k.col(row)(1)*(x_r(0)+d_0(0)))/CLIGHT; double sagnac_corr_k = computeSagnacCorrection(x_r,s_k); //OMGE*(s_k.col(row)(0)*(x_r(1)+d_0(1))-s_k.col(row)(1)*(x_r(0)+d_0(0)))/CLIGHT;
drho_m(row) += -sagnac_corr_k + sagnac_corr_r;
if (tdcp_params.sagnac_correction == 1)
drho_m(row) += -sagnac_corr_k + sagnac_corr_r;
else
drho_m(row) -= -sagnac_corr_k + sagnac_corr_r;
} }
#if GNSS_UTILS_TDCP_DEBUG == 1 #if GNSS_UTILS_TDCP_DEBUG == 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment