Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR_SensorCalibration.h
Go to the documentation of this file.
1 /************************************************************************************
2 
3 Filename : OVR_SensorCalibration.h
4 Content : Calibration data implementation for the IMU messages
5 Created : January 28, 2014
6 Authors : Max Katsev
7 
8 Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
9 
10 Licensed under the Oculus VR Rift SDK License Version 3.1 (the "License");
11 you may not use the Oculus VR Rift SDK except in compliance with the License,
12 which is provided at the time of installation or download, or which
13 otherwise accompanies this software in either electronic or hard copy form.
14 
15 You may obtain a copy of the License at
16 
17 http://www.oculusvr.com/licenses/LICENSE-3.1
18 
19 Unless required by applicable law or agreed to in writing, the Oculus VR SDK
20 distributed under the License is distributed on an "AS IS" BASIS,
21 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 See the License for the specific language governing permissions and
23 limitations under the License.
24 
25 *************************************************************************************/
26 
27 #ifndef OVR_SensorCalibration_h
28 #define OVR_SensorCalibration_h
29 
30 #include "OVR_Device.h"
31 #include "OVR_SensorFilter.h"
32 
33 namespace OVR {
34 
36 {
37 public:
38  void Initialize(Array<Array<TemperatureReport> > const& temperatureReports, int coord);
39  double GetOffset(double targetTemperature, double autoTemperature, double autoValue);
40 
43 };
44 
46 {
47 public:
49 
50  // Load data from the HW and perform the necessary preprocessing
51  void Initialize();
52  // Apply the calibration
53  void Apply(MessageBodyFrame& msg);
54  // Is mag calibration available?
55  bool IsMagCalibrated() { return MagCalibrated; }
56 
57 protected:
58  void StoreAutoOffset();
59  void AutocalibrateGyro(MessageBodyFrame const& msg);
60 
63 
65 
66  // Factory calibration data
70 
71  // Temperature based data
74 
75  // Autocalibration data
79 };
80 
81 } // namespace OVR
82 #endif //OVR_SensorCalibration_h
void Apply(MessageBodyFrame &msg)
OffsetInterpolator Interpolators[3]
void Initialize(Array< Array< TemperatureReport > > const &temperatureReports, int coord)
SensorCalibration(SensorDevice *pSensor)
void AutocalibrateGyro(MessageBodyFrame const &msg)
double GetOffset(double targetTemperature, double autoTemperature, double autoValue)
Array< Array< TemperatureReport > > TemperatureReports