![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
kor bork wa cop koy ma
Fork of testIMU2_copy2 by
main.cpp
- Committer:
- csggreen
- Date:
- 2017-12-07
- Revision:
- 3:ee0df78b0dd3
- Parent:
- 2:6bc2c5d68446
File content as of revision 3:ee0df78b0dd3:
#include "mbed.h" #include "zmu9250.h" #include "math.h" ZMU9250 axis_Gen; Serial pc(D1, D0); float axis_z, axis_y, axis_x; int main(){ while(1){ wait(0.1); axis_Gen.Update(); axis_z = axis_Gen.Yaw(); axis_y = axis_Gen.Pitch(); axis_x = axis_Gen.Roll(); pc.printf(" axis_x %f\t axis_y %f\t axis_z %f\n\n\n\r", axis_x, axis_y, axis_z); } }