kor bork wa cop koy ma
Fork of testIMU2_copy2 by
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "zmu9250.h" 00003 #include "math.h" 00004 00005 ZMU9250 axis_Gen; 00006 Serial pc(D1, D0); 00007 00008 float axis_z, axis_y, axis_x; 00009 int main(){ 00010 00011 while(1){ 00012 wait(0.1); 00013 axis_Gen.Update(); 00014 axis_z = axis_Gen.Yaw(); 00015 axis_y = axis_Gen.Pitch(); 00016 axis_x = axis_Gen.Roll(); 00017 pc.printf(" axis_x %f\t axis_y %f\t axis_z %f\n\n\n\r", axis_x, axis_y, axis_z); 00018 } 00019 } 00020
Generated on Sun Jul 17 2022 00:07:07 by
1.7.2
