imu.h
Go to the documentation of this file.
1 /*
2  * KubOS Core Flight Services
3  * Copyright (C) 2016 Kubos Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
42 #ifndef IMU_H
43 #define IMU_H
44 
46 
50 typedef struct
51 {
52  double x;
53  double y;
54  double z;
56 
60 typedef struct
61 {
62  double w;
63  double x;
64  double y;
65  double z;
67 
74 
82 
90 
98 
106 
107 #endif
KSensorStatus k_get_compass(k_sensor_vector_t *mag)
Reads magnetometer data from the related sensor.
KSensorStatus k_get_acceleration(k_sensor_vector_t *accel)
Reads accelerometer data from the related sensor.
KSensorStatus k_initialize_imu_sensor(void)
Setup the IMU interface and any related sensors.
double y
Definition: imu.h:64
double x
Definition: imu.h:63
KSensorStatus
Sensor status enum.
Definition: sensors.h:24
double z
Definition: imu.h:54
double x
Definition: imu.h:52
3D IMU vector
Definition: imu.h:50
double y
Definition: imu.h:53
KSensorStatus k_get_gyro(k_sensor_vector_t *gyro)
Reads gyroscope data from the related sensor.
Quaternion absolute position vector.
Definition: imu.h:60
KSensorStatus k_get_absolute_position(k_position_vector_t *pos)
Computes absolute position in a quaternion vector using sensor fusion.
double z
Definition: imu.h:65
double w
Definition: imu.h:62