增加注释

This commit is contained in:
2026-03-24 07:59:13 +08:00
parent 09a85d9156
commit 5cd4da1fcc

View File

@@ -33,7 +33,7 @@ static bool sendTarget(Serial &serial, double yaw, uint16_t shoot_delay, bool fi
buff[2] = static_cast<char>((yaw_tmp >> 0) & 0xFF);
buff[3] = static_cast<char>((shoot_delay >> 8) & 0xFF);
buff[4] = static_cast<char>((shoot_delay >> 0) & 0xFF);
buff[5] = fire ? 1 : 0;
buff[5] = fire ? 1 : 0; // 1为开火 0为闭嘴
buff[6] = 'e';
return serial.WriteData(buff, sizeof(buff));
}