BlueNinja BSP  0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
TZ01_motion_tracker.h
[詳解]
1 
7 /*
8 Copyright 2015 Cerevo Inc.
9 
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13 
14  http://www.apache.org/licenses/LICENSE-2.0
15 
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21 */
22 
23 #ifndef _TZ01_MOTION_TRACKER_H_
24 #define _TZ01_MOTION_TRACKER_H_
25 
26 #include <stdint.h>
27 #include <stdbool.h>
28 
29 #define PI (3.1415926535)
30 
37 bool TZ01_motion_tracker_init(void);
38 
51 bool TZ01_motion_tracker_gyro_read(uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z);
52 
65 bool TZ01_motion_tracker_accel_read(uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z);
66 
75 bool TZ01_motion_tracker_temperature_read(uint16_t *rt, float *t);
76 
89 bool TZ01_motion_tracker_magnetometer_read(uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z);
90 
99 bool TZ01_motion_tracker_acc_axis_angle(float *pitch_rad, float *roll_rad);
100 
109 void TZ01_motion_tracker_compute_axis_angle(float acc_x, float acc_y, float acc_z, float *pitch_rad, float *roll_rad);
110 
111 #endif
bool TZ01_motion_tracker_magnetometer_read(uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z)
Read Magnetometer value.
Definition: TZ01_motion_tracker.c:157
bool TZ01_motion_tracker_temperature_read(uint16_t *rt, float *t)
Read chip temperature value.
Definition: TZ01_motion_tracker.c:132
void TZ01_motion_tracker_compute_axis_angle(float acc_x, float acc_y, float acc_z, float *pitch_rad, float *roll_rad)
Comute AXIS angle from maesured accel values.
Definition: TZ01_motion_tracker.c:206
bool TZ01_motion_tracker_accel_read(uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z)
Read Accel value.
Definition: TZ01_motion_tracker.c:94
bool TZ01_motion_tracker_gyro_read(uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z)
Read Gyro value.
Definition: TZ01_motion_tracker.c:56
bool TZ01_motion_tracker_acc_axis_angle(float *pitch_rad, float *roll_rad)
Computed AXIS angle from Accel.
Definition: TZ01_motion_tracker.c:193
bool TZ01_motion_tracker_init(void)
Initialize the motion tracker library.
Definition: TZ01_motion_tracker.c:40