kor bork wa cop koy ma

Dependencies:   mbed

Fork of testIMU2_copy2 by OX

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

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