4 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #include <sensor_fusion.h>
22 sensor_fusion::sensor_fusion()
26 sensor_fusion::~sensor_fusion()
30 bool sensor_fusion::is_fusion(void)
35 bool sensor_fusion::is_virtual(void)
40 bool sensor_fusion::is_data_ready(void)
45 void sensor_fusion::clear_data(void)
50 bool sensor_fusion::get_rotation_matrix(arr33_t &rot, int &accuracy)
55 bool sensor_fusion::get_attitude(float &x, float &y, float &z, float &w)
60 bool sensor_fusion::get_gyro_bias(float &x, float &y, float &z)
65 bool sensor_fusion::get_rotation_vector(float &x, float &y, float &z, float &w, float &heading_accuracy, int &accuracy)
70 bool sensor_fusion::get_linear_acceleration(float &x, float &y, float &z, int &accuracy)
75 bool sensor_fusion::get_gravity(float &x, float &y, float &z, int &accuracy)
80 bool sensor_fusion::get_rotation_vector_6axis(float &x, float &y, float &z, float &w, float &heading_accuracy, int &accuracy)
85 bool sensor_fusion::get_geomagnetic_rotation_vector(float &x, float &y, float &z, float &w, int &accuracy)
90 bool sensor_fusion::get_orientation(float &azimuth, float &pitch, float &roll, int &accuracy)
95 bool sensor_fusion::set_interval(unsigned int event_type, int client_id, unsigned int interval)
97 return sensor_base::add_interval(client_id, interval, true);
100 bool sensor_fusion::unset_interval(unsigned int event_type, int client_id)
102 return sensor_base::delete_interval(client_id, true);