I want go to sea
Dependencies: arrc_mbed Servo air
Diff: main.cpp
- Revision:
- 4:7e2aa008f84b
- Parent:
- 3:ccd2dd7d3814
- Child:
- 5:1506bf89f48e
diff -r ccd2dd7d3814 -r 7e2aa008f84b main.cpp --- a/main.cpp Sat Mar 19 02:12:50 2022 +0000 +++ b/main.cpp Fri Apr 01 00:23:31 2022 +0000 @@ -147,18 +147,15 @@ if(rx_data==-1){ date2=-1; } - if(!limitA2){ - limit_air=1; - } - if(!limitB2){ - limit_air=-1; + if(limitA2){ + air_date2=0; } if(date2==1 && !limitA2){ driveMotorS3(0.6); limit_air=0; - }else if(date2==-1 &&!limitB2){ - driveMotorS3(-0.4); + }else if(tx_data==-1 &&!limitB2){ + driveMotorS3(-0.6); limit_air=0; }else{ driveMotorS3(0);