mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-10-31 15:16:22 +00:00
Add const
This commit is contained in:
parent
318a39bd79
commit
81eb2a07c3
@ -646,10 +646,10 @@ arma::vec rough_bancroft(const arma::mat &B_pass)
|
|||||||
}
|
}
|
||||||
const arma::vec BBBe = BBB * e;
|
const arma::vec BBBe = BBB * e;
|
||||||
const arma::vec BBBalpha = BBB * alpha;
|
const arma::vec BBBalpha = BBB * alpha;
|
||||||
double a = lorentz(BBBe, BBBe);
|
const double a = lorentz(BBBe, BBBe);
|
||||||
double b = lorentz(BBBe, BBBalpha) - 1.0;
|
const double b = lorentz(BBBe, BBBalpha) - 1.0;
|
||||||
double c = lorentz(BBBalpha, BBBalpha);
|
const double c = lorentz(BBBalpha, BBBalpha);
|
||||||
double root = std::sqrt(b * b - a * c);
|
const double root = std::sqrt(b * b - a * c);
|
||||||
arma::vec r(2);
|
arma::vec r(2);
|
||||||
r(0) = (-b - root) / a;
|
r(0) = (-b - root) / a;
|
||||||
r(1) = (-b + root) / a;
|
r(1) = (-b + root) / a;
|
||||||
@ -664,9 +664,9 @@ arma::vec rough_bancroft(const arma::mat &B_pass)
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < 2; i++)
|
for (int i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
double c_dt = possible_pos(3, i);
|
const double c_dt = possible_pos(3, i);
|
||||||
double calc = arma::norm(B_pass.row(j).head(3).t() - possible_pos.head_rows(3).col(i)) + c_dt;
|
const double calc = arma::norm(B_pass.row(j).head(3).t() - possible_pos.head_rows(3).col(i)) + c_dt;
|
||||||
double omc = B_pass(j, 3) - calc;
|
const double omc = B_pass(j, 3) - calc;
|
||||||
abs_omc(i) = std::abs(omc);
|
abs_omc(i) = std::abs(omc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user