1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

OP-1150: remove couts left from old debug code

This commit is contained in:
Alessio Morale 2014-02-06 01:00:40 +01:00
parent 8a3e737cd8
commit 128daa9f03
3 changed files with 0 additions and 4 deletions

View File

@ -91,7 +91,6 @@ bool CalibrationUtils::PolynomialCalibration(VectorXf *samplesX, Eigen::VectorXf
Eigen::VectorXd tmpx = xtx.fullPivHouseholderQr().solve(xty);
result = tmpx.cast<float>();
double relativeError = (xtx * tmpx - xty).norm() / xty.norm();
std::cout << "Estimated relative error " << relativeError << "; Max allowed error " << maxRelativeError << std::endl;
return relativeError < maxRelativeError;
}

View File

@ -32,7 +32,6 @@
#include <Eigen/Eigenvalues>
#include <Eigen/Dense>
#include <Eigen/LU>
#include <iostream>
namespace OpenPilot {
class CalibrationUtils {

View File

@ -53,7 +53,6 @@ bool ThermalCalibration::BarometerCalibration(Eigen::VectorXf pressure, Eigen::V
if (!CalibrationUtils::PolynomialCalibration(&temperature, &pressure, BARO_PRESSURE_POLY_DEGREE, solution, BARO_PRESSURE_MAX_REL_ERROR)) {
return false;
}
std::cout << "Baro calibration " << solution << std::endl;
copyToArray(result, solution, BARO_PRESSURE_POLY_DEGREE + 1);
ComputeStats(&temperature, &pressure, &solution, inputSigma, calibratedSigma);
return (*calibratedSigma) < (*inputSigma);
@ -122,7 +121,6 @@ bool ThermalCalibration::GyroscopeCalibration(Eigen::VectorXf samplesX, Eigen::V
result[4] = solution[1];
result[5] = solution[2];
solution[0] = 0;
std::cout << solution << std::endl;
ComputeStats(&temperature, &samplesZ, &solution, &inputSigma[2], &calibratedSigma[2]);
return (inputSigma[0] > calibratedSigma[0]) && (inputSigma[1] > calibratedSigma[1]) && (inputSigma[2] > calibratedSigma[2]);
}