iCub-main
imuMeasureConverter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2018 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * Author Valentina Gaggero
6  *
7  * This software may be modified and distributed under the terms of the
8  * BSD-3-Clause license. See the accompanying LICENSE file for details.
9  */
10 
11 #ifndef __ImuMeasureConverter_h__
12 #define __ImuMeasureConverter_h__
13 
14 // namespace yarp {
15 // namespace dev {
16 // class ImuMeasureConverter;
17 // }
18 // }
20 {
21 private:
22  double accFactor; //raw to metric measure
23  double gyrFactor; //raw to metric measure
24  double magFactor; //raw to metric measure
25  double eulFactor; //raw to metric measure
26 public:
28  ImuMeasureConverter(double accConvFactor, double gyrConvFactor, double magConvFactor, double eulConvFactor);
29  void Initialize(double accConvFactor, double gyrConvFactor, double magConvFactor, double eulConvFactor);
30 
31  double convertAcc_raw2metric(double) const;
32  double convertGyr_raw2metric(double) const;
33  double convertMag_raw2metric(double) const;
34  double convertEul_raw2metric(double) const;
35 };
36 
37 #endif
double convertEul_raw2metric(double) const
double convertAcc_raw2metric(double) const
void Initialize(double accConvFactor, double gyrConvFactor, double magConvFactor, double eulConvFactor)
double convertMag_raw2metric(double) const
double convertGyr_raw2metric(double) const