hahaha
Dependencies: mbed
Diff: bmu.h
- Revision:
- 1:d8ce226c8c2e
- Parent:
- 0:a291977ec0b1
diff -r a291977ec0b1 -r d8ce226c8c2e bmu.h --- a/bmu.h Mon Dec 05 18:31:43 2016 +0000 +++ b/bmu.h Tue Dec 06 06:11:54 2016 +0000 @@ -2,12 +2,15 @@ #include "zmu9250.h" #include "math.h" +Serial aaa (USBTX,USBRX); -ZMU9250 a; + class bmuimu { + private: + ZMU9250 a; public: @@ -73,12 +76,13 @@ return true ; } - void bmuimu::update() { + void bmuimu::bmuupdate() { + this->a.Update(); + this->yaw_z = this->a.Yaw(); + this->pitch_y = this->a.Pitch(); + this->roll_x = this->a.Roll(); + aaa.printf("%d , %d and %d\n\r",this->roll_x,this->pitch_y,this->yaw_z); - a.Update(); - this->yaw_z = a.Yaw(); - this->pitch_y = a.Pitch(); - this->roll_x = a.Roll(); }