Merge "sensord: delete batch latency/attribute when client is terminated unexpectedly...
[platform/core/system/sensord.git] / src / server / sensor_fusion.cpp
1 /*
2  * sensord
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_fusion(void)
31 {
32         return true;
33 }
34
35 bool sensor_fusion::is_virtual(void)
36 {
37         return false;
38 }
39
40 bool sensor_fusion::is_data_ready(void)
41 {
42         return true;
43 }
44
45 void sensor_fusion::clear_data(void)
46 {
47         return;
48 }
49
50 bool sensor_fusion::get_rotation_matrix(arr33_t &rot, int &accuracy)
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, int &accuracy)
66 {
67         return false;
68 }
69
70 bool sensor_fusion::get_linear_acceleration(float &x, float &y, float &z, int &accuracy)
71 {
72         return false;
73 }
74
75 bool sensor_fusion::get_gravity(float &x, float &y, float &z, int &accuracy)
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, int &accuracy)
81 {
82         return false;
83 }
84
85 bool sensor_fusion::get_geomagnetic_rotation_vector(float &x, float &y, float &z, float &w, int &accuracy)
86 {
87         return false;
88 }
89
90 bool sensor_fusion::get_orientation(float &azimuth, float &pitch, float &roll, int &accuracy)
91 {
92         return false;
93 }
94
95 bool sensor_fusion::set_interval(unsigned int event_type, int client_id, unsigned int interval)
96 {
97         return sensor_base::add_interval(client_id, interval, true);
98 }
99
100 bool sensor_fusion::unset_interval(unsigned int event_type, int client_id)
101 {
102         return sensor_base::delete_interval(client_id, true);
103 }
104