BlueNinja BSP  0.5
Cerevo BlueNinja(CDP-TZ01B) Board Support Packageリファレンスマニュアル
TZ01_motion_tracker.h ファイル

Motion tracker library for Cerevo CDP-TZ01B. [詳解]

#include <stdint.h>
#include <stdbool.h>

[ソースコード]

マクロ定義

#define PI   (3.1415926535)
 

関数

bool TZ01_motion_tracker_init (void)
 Initialize the motion tracker library. [詳解]
 
bool TZ01_motion_tracker_gyro_read (uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z)
 Read Gyro value. [詳解]
 
bool TZ01_motion_tracker_accel_read (uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z)
 Read Accel value. [詳解]
 
bool TZ01_motion_tracker_temperature_read (uint16_t *rt, float *t)
 Read chip temperature value. [詳解]
 
bool TZ01_motion_tracker_magnetometer_read (uint16_t *rx, uint16_t *ry, uint16_t *rz, float *x, float *y, float *z)
 Read Magnetometer value. [詳解]
 
bool TZ01_motion_tracker_acc_axis_angle (float *pitch_rad, float *roll_rad)
 Computed AXIS angle from Accel. [詳解]
 
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. [詳解]
 

詳解

Motion tracker library for Cerevo CDP-TZ01B.

著者
Cerevo Inc.

関数詳解

bool TZ01_motion_tracker_acc_axis_angle ( float *  pitch_rad,
float *  roll_rad 
)

Computed AXIS angle from Accel.

引数
[out]pitch_rad(UNIT is `radian')
[out]roll_rad(UNIT is `radian')
戻り値
Read result.
戻り値
trueSuccess.
falseFailed.(Ex. Driver state missmatch.)
bool TZ01_motion_tracker_accel_read ( uint16_t *  rx,
uint16_t *  ry,
uint16_t *  rz,
float *  x,
float *  y,
float *  z 
)

Read Accel value.

引数
[out]rxRaw value of X-axis.
[out]ryRaw value of Y-axis.
[out]rzRaw value of Z-axis.
[out]xComputed value of X-axis.(UINT is `G')
[out]yComputed value of Y-axis.(UINT is `G')
[out]zComputed value of Z-axis.(UINT is `G')
戻り値
Read result.
戻り値
trueSuccess.
falseFailed.(Ex. Driver state missmatch.)
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.

引数
[in]acc_xX-axis accel value(Unit is `G')
[in]acc_yY-axis accel value(Unit is `G')
[in]acc_zZ-axis accel value(Unit is `G')
[out]pitch_radComputed pitch (UNIT is `radian')
[out]roll_radComputed roll (UNIT is `radian')
bool TZ01_motion_tracker_gyro_read ( uint16_t *  rx,
uint16_t *  ry,
uint16_t *  rz,
float *  x,
float *  y,
float *  z 
)

Read Gyro value.

引数
[out]rxRaw value of X-axis/Roll.
[out]ryRaw value of Y-axis/Pitch.
[out]rzRaw value of Z-axis/Yaw.
[out]xComputed value of X-axis/Pitch.(UINT is `degree/s')
[out]yComputed value of Y-axis/Roll. (UINT is `degree/s')
[out]zComputed value of Z-axis/Yaw. (UINT is `degree/s')
戻り値
Read result.
戻り値
trueSuccess.
falseFailed.(Ex. Driver state missmatch.)
bool TZ01_motion_tracker_init ( void  )

Initialize the motion tracker library.

戻り値
Initiaize result.
戻り値
trueSuccess.
falseFailed.
bool TZ01_motion_tracker_magnetometer_read ( uint16_t *  rx,
uint16_t *  ry,
uint16_t *  rz,
float *  x,
float *  y,
float *  z 
)

Read Magnetometer value.

引数
[out]rxRaw value of X-axis.
[out]ryRaw value of Y-axis.
[out]rzRaw value of Z-axis.
[out]xComputed value of X-axis.(UINT is `uH')
[out]yComputed value of Y-axis.(UINT is `uH')
[out]zComputed value of Z-axis.(UINT is `uH')
戻り値
Read result.
戻り値
trueSuccess.
falseFailed.(Ex. Driver state missmatch.)
bool TZ01_motion_tracker_temperature_read ( uint16_t *  rt,
float *  t 
)

Read chip temperature value.

引数
[out]rtRaw value.
[out]tComputed value.(Unit is `degree Celsius')
戻り値
Read result.
戻り値
trueSuccess.
falseFailed.(Ex. Driver state missmatch.)