Grenade Drone Controller
Dependencies: mbed
Diff: Functions/Functions.cpp
- Revision:
- 1:903bcc4d9628
- Parent:
- 0:4194aba3f887
diff -r 4194aba3f887 -r 903bcc4d9628 Functions/Functions.cpp --- a/Functions/Functions.cpp Mon Jul 16 06:49:15 2018 +0000 +++ b/Functions/Functions.cpp Mon Aug 20 03:06:52 2018 +0000 @@ -35,8 +35,8 @@ } void SndPWM(void) { - pwm_t7 = (float)var7*0.000001; - pwm_t8 = (float)var8*0.000001; + pwm_t7 = var7*0.000001f; + pwm_t8 = var8*0.000001f; pwm1.pulsewidth_us(var1); pwm2.pulsewidth_us(var2);