pref: 优化控制pid,将角速度环输出加到侧面风扇上

This commit is contained in:
2024-03-24 18:24:32 +08:00
parent 756e8ce029
commit 2e8aec0cf5
7 changed files with 79 additions and 52 deletions

View File

@@ -14,6 +14,7 @@ enum bt_order {
Speed_up = 0x04, // 加速
Speed_down = 0x05, // 减速
Speed_ctrl = 0x06, // 速度开关
Reset,
};
/**
* @brief 蓝牙初始化
@@ -50,6 +51,9 @@ void jj_bt_run()
case Speed_down:
bt_run -= 50;
break;
case Reset:
NVIC_SystemReset();
break;
default:
break;
}