This commit is contained in:
2025-12-05 13:48:14 +08:00
parent 601e248cd6
commit 8f5ced6be3
8 changed files with 2 additions and 16 deletions

View File

@@ -1,2 +0,0 @@
[ZoneTransfer]
ZoneId=3

View File

@@ -1,2 +0,0 @@
[ZoneTransfer]
ZoneId=3

View File

@@ -1,2 +0,0 @@
[ZoneTransfer]
ZoneId=3

View File

@@ -1,2 +0,0 @@
[ZoneTransfer]
ZoneId=3

View File

@@ -1,2 +0,0 @@
[ZoneTransfer]
ZoneId=3

View File

@@ -1,2 +0,0 @@
[ZoneTransfer]
ZoneId=3

View File

@@ -1,2 +0,0 @@
[ZoneTransfer]
ZoneId=3

View File

@@ -45,7 +45,7 @@ void output_control_data(const cv::Point2f* ballistic_point,
else if (target_color == "blue") simplified_color = "b";
// Construct send string (original format)
send_str << "#s " << simplified_color << " " << std::to_string(ballistic_offset_x) << " " << std::to_string(ballistic_offset_y) << "*\n";
send_str << "#s " << simplified_color << " " << std::to_string(ballistic_offset_yaw) << " " << std::to_string(ballistic_offset_pitch) << "*\n";
// Send data
if (ttl_communicator != nullptr) {
@@ -298,9 +298,9 @@ int main(int /*argc*/, char* /*argv*/[]) {
output_control_data(display_center, target_color, ttl, img_center, use_ttl);
// Display windows
cv::imshow("Armor Detection", frame);
cv::imshow(target_color + " Mask", mask);
cv::imshow(target_color + " Only", color_only_frame);
cv::imshow("Armor Detection", frame);
// Exit on 'q' key press
if (cv::waitKey(1) == 'q') {