svoe
Dependencies: mbed mbed-STM32F103C8T6 MPU6050_1
Diff: wifi.h
- Revision:
- 2:f170902b3a15
- Parent:
- 1:e2a6e523bf1f
- Child:
- 3:8e8458f45d19
--- a/wifi.h Sat May 06 18:21:55 2017 +0000 +++ b/wifi.h Sat May 06 19:27:01 2017 +0000 @@ -3,7 +3,7 @@ if (tm_command == 255) stop_flag = 1; else{ if (tm_command < 128){speed = tm_command - 20;} - else {radius = tm_command - 128 - 20;} + else {if ((tm_command - 128 - 20) == 0)radius = 1e5; else radius = 100/(tm_command - 128 - 20);} stop_flag = 0; infinite_flag = 1; } }