svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

wifi.h

Committer:
Stas285
Date:
2017-05-06
Revision:
2:f170902b3a15
Parent:
1:e2a6e523bf1f
Child:
3:8e8458f45d19

File content as of revision 2:f170902b3a15:

void command_process(){
    char tm_command = wifi.getc();
    if (tm_command == 255) stop_flag = 1;
    else{
        if (tm_command < 128){speed = tm_command - 20;}
        else {if ((tm_command - 128 - 20) == 0)radius = 1e5; else radius = 100/(tm_command - 128 - 20);}
        stop_flag = 0; infinite_flag = 1;
        }
    }

void wifi_init(){
    wifi.attach(&command_process);
    }