暂存的更新

This commit is contained in:
2024-05-05 19:15:51 +08:00
parent ff88b5a3fe
commit 6b1f345ead
5 changed files with 155 additions and 111 deletions

View File

@@ -6,7 +6,7 @@ uint8_t bt_buffer; // 接收字符存入
uint8_t bt_run_flag = 0;
uint8_t bt_fly_flag = 0;
uint32_t bt_run = 0;
uint32_t bt_fly = 500;
uint32_t bt_fly = 300;
enum bt_order {
Fly_ctrl = 0x01, // 起飞转换
Fly_up = 0x02, // 起飞程度增加
@@ -40,10 +40,10 @@ void jj_bt_run()
bt_run_flag = !bt_run_flag;
break;
case Fly_up:
bt_fly += 50;
bt_fly += 25;
break;
case Fly_dowm:
bt_fly -= 50;
bt_fly -= 25;
break;
case Speed_up:
bt_run += 50;