optimize: unused vars
This commit is contained in:
parent
4ac26311f9
commit
d832f4a5fd
12
src/main.cpp
12
src/main.cpp
|
@ -5,23 +5,17 @@
|
|||
#include <ble.h>
|
||||
#include "consts.h"
|
||||
|
||||
// 全局变量
|
||||
int currentSpeed = 0; // 当前速度
|
||||
int turnOffset = 0; // 转向偏移量 (-100 到 100)
|
||||
bool isMoving = false; // 运动状态
|
||||
bool isTurning = false; // 转向状态
|
||||
|
||||
void setup()
|
||||
{
|
||||
// 初始化口
|
||||
Serial.begin(115200);
|
||||
|
||||
// 初始化 BLE
|
||||
BLEManager::init(DEVICE_NAME);
|
||||
|
||||
// 初始化 EEPROM
|
||||
Storage::init();
|
||||
|
||||
// 初始化 BLE
|
||||
BLEManager::init(DEVICE_NAME);
|
||||
|
||||
// 初始化电机
|
||||
MotorController::init(
|
||||
{MOTOR_A_PWMA, MOTOR_A_AIN1, MOTOR_A_AIN2},
|
||||
|
|
Loading…
Reference in New Issue