增加注释
This commit is contained in:
@@ -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[2] = static_cast<char>((yaw_tmp >> 0) & 0xFF);
|
||||||
buff[3] = static_cast<char>((shoot_delay >> 8) & 0xFF);
|
buff[3] = static_cast<char>((shoot_delay >> 8) & 0xFF);
|
||||||
buff[4] = static_cast<char>((shoot_delay >> 0) & 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';
|
buff[6] = 'e';
|
||||||
return serial.WriteData(buff, sizeof(buff));
|
return serial.WriteData(buff, sizeof(buff));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user