read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle
Dependencies: mbed
toString.h@0:5e220b09d315, 2015-04-13 (annotated)
- Committer:
- ojan
- Date:
- Mon Apr 13 08:10:05 2015 +0000
- Revision:
- 0:5e220b09d315
read acceleration and angler ratio from mpu6050 and estimate pitch and roll angle
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ojan | 0:5e220b09d315 | 1 | #pragma once |
ojan | 0:5e220b09d315 | 2 | #include "mbed.h" |
ojan | 0:5e220b09d315 | 3 | |
ojan | 0:5e220b09d315 | 4 | /* |
ojan | 0:5e220b09d315 | 5 | * 整数値を2進数表示にして返す関数 |
ojan | 0:5e220b09d315 | 6 | * |
ojan | 0:5e220b09d315 | 7 | * 引数: dest 2進数表示文字列を格納する出力先配列のポインタ |
ojan | 0:5e220b09d315 | 8 | * destSize 出力先配列の大きさ |
ojan | 0:5e220b09d315 | 9 | * integer 2進数表示したい整数値 |
ojan | 0:5e220b09d315 | 10 | * byteNum 整数値のデータの大きさ(バイト数)、デフォルトは1 |
ojan | 0:5e220b09d315 | 11 | */ |
ojan | 0:5e220b09d315 | 12 | void ToBinaryString(char* dest, int destSize, const int integer, int byteNum = 1); |