Adding AK8975 geo-sensor info in sensors.xml.in required by geo-plugin
[platform/core/system/sensord.git] / src / shared / sensor_fusion.cpp
1 /*
2  * libsensord-share
3  *
4  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #include <sensor_fusion.h>
21
22 sensor_fusion::sensor_fusion()
23 {
24 }
25
26 sensor_fusion::~sensor_fusion()
27 {
28 }
29
30 bool sensor_fusion::is_data_ready(void)
31 {
32         return true;
33 }
34
35 bool sensor_fusion::get_properties(sensor_properties_t &properties)
36 {
37         return false;
38 }
39
40 bool sensor_fusion::add_interval(int client_id, unsigned int interval)
41 {
42         return true;
43 }
44
45 bool sensor_fusion::delete_interval(int client_id)
46 {
47         return true;
48 }
49
50 bool sensor_fusion::get_rotation_matrix(arr33_t &rot)
51 {
52         return false;
53 }
54
55 bool sensor_fusion::get_attitude(float &x, float &y, float &z, float &w)
56 {
57         return false;
58 }
59
60 bool sensor_fusion::get_gyro_bias(float &x, float &y, float &z)
61 {
62         return false;
63 }
64
65 bool sensor_fusion::get_rotation_vector(float &x, float &y, float &z, float &w, float &heading_accuracy)
66 {
67         return false;
68 }
69
70 bool sensor_fusion::get_linear_acceleration(float &x, float &y, float &z)
71 {
72         return false;
73 }
74
75 bool sensor_fusion::get_gravity(float &x, float &y, float &z)
76 {
77         return false;
78 }
79
80 bool sensor_fusion::get_rotation_vector_6axis(float &x, float &y, float &z, float &w, float &heading_accuracy)
81 {
82         return false;
83 }
84
85 bool sensor_fusion::get_geomagnetic_rotation_vector(float &x, float &y, float &z, float &w)
86 {
87         return false;
88 }
89
90 bool sensor_fusion::get_orientation(float &azimuth, float &pitch, float &roll)
91 {
92         return false;
93 }
94
95 bool sensor_fusion::is_fusion(void)
96 {
97         return true;
98 }