44 std::ifstream input(fileName);
49 input.ignore(1000,
'\n');
51 for (
int i = 0; i < 3; i++)
57 for (
int i = 0; i < 3; i++)
75 std::ofstream output(fileName);
79 output <<
"b0,b1,b2,A0,A1,A2" << std::endl;
80 output <<
b(0) <<
"," <<
b(1) <<
"," <<
b(2) <<
",";
81 output <<
A(0) <<
"," <<
A(1) <<
"," <<
A(2);
96 return A.cwiseProduct(input -
b);
Bias correction removes a bias from a measurement.
bool fromFile(const std::string &fileName) override
void setA(const Eigen::Vector3f &A)
Eigen::Vector3f correct(const Eigen::Vector3f &input) const override
Eigen::Vector3f getA() const
bool toFile(const std::string &fileName) override
This file includes all the types the logdecoder script will decode.