Руслан Урядинский / Mbed 2 deprecated Servo_move_sin

Dependencies:   mbed-STM32F103C8T6 mbed

Files at this revision

API Documentation at this revision

Comitter:
RuslanUrya
Date:
Wed Apr 18 13:31:28 2018 +0000
Parent:
5:e86eda00ef3f
Commit message:
double pi

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Apr 18 12:24:46 2018 +0000
+++ b/main.cpp	Wed Apr 18 13:31:28 2018 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "stm32f103c8t6.h"
 #define val 0.05 // percents in step / 100
-#define pi 3.1415
+#define pi 3.141592653589793115997963468544185161590576171875
 
 PwmOut Servo (PA_8);
 DigitalOut myled(PC_13);