svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Committer:
Stas285
Date:
Sat May 06 18:21:55 2017 +0000
Revision:
1:e2a6e523bf1f
Parent:
0:e9488589a8ee
Child:
2:f170902b3a15
wifi + echo + rc

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Stas285 1:e2a6e523bf1f 1 void command_process(){
Stas285 1:e2a6e523bf1f 2 char tm_command = wifi.getc();
Stas285 1:e2a6e523bf1f 3 if (tm_command == 255) stop_flag = 1;
Stas285 1:e2a6e523bf1f 4 else{
Stas285 1:e2a6e523bf1f 5 if (tm_command < 128){speed = tm_command - 20;}
Stas285 1:e2a6e523bf1f 6 else {radius = tm_command - 128 - 20;}
Stas285 1:e2a6e523bf1f 7 stop_flag = 0; infinite_flag = 1;
Stas285 1:e2a6e523bf1f 8 }
Stas285 1:e2a6e523bf1f 9 }
Stas285 1:e2a6e523bf1f 10
Stas285 0:e9488589a8ee 11 void wifi_init(){
Stas285 1:e2a6e523bf1f 12 wifi.attach(&command_process);
Stas285 1:e2a6e523bf1f 13 }