![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Dependencies: BNO055_fusion_tom FastPWM mbed
Fork of NucleoCube1 by
Diff: main.cpp
- Revision:
- 1:d81f93d3f819
- Parent:
- 0:604ceafb7bb3
- Child:
- 2:93c7a7fb3203
diff -r 604ceafb7bb3 -r d81f93d3f819 main.cpp --- a/main.cpp Sun Apr 02 05:20:13 2017 +0000 +++ b/main.cpp Mon Apr 03 03:37:20 2017 +0000 @@ -10,9 +10,9 @@ Serial pc(SERIAL_TX, SERIAL_RX); DigitalOut myled(LED1); -PwmOut P1(D6); -PwmOut P2(PA_0); -PwmOut P3(PB_4); +PwmOut P1(PE_9); +PwmOut P2(PE_11); +PwmOut P3(PE_13); int main() { @@ -44,8 +44,8 @@ //pc.printf("This program runs since %d seconds.\n", i++); //pc.putc(pc.getc()); myled = !myled; - P1 = (euler_angles.h/360.0); - P2 = (euler_angles.r/360.0); - P3 = (euler_angles.p/360.0); + P1 = .25;//(euler_angles.h/360.0); + P2 = .5; //(euler_angles.r/360.0); + P3 = .75; //(euler_angles.p/360.0); } }