This commit is contained in:
2025-12-05 14:35:59 +08:00
parent 97f962c2ae
commit b5ad1fa7f8

View File

@@ -82,8 +82,8 @@ void output_control_data(const cv::Point2f* ballistic_point,
// Convert PID outputs to the expected format
// The PID output might be large, so we might need to scale it
int ballistic_offset_yaw = 1.9*-static_cast<int>(pid_yaw_output);
int ballistic_offset_pitch = 1.9*-static_cast<int>(pid_pitch_output);
int ballistic_offset_yaw = 1.9 * (-static_cast<int>(pid_yaw_output));
int ballistic_offset_pitch = 1.9 * (-static_cast<int>(pid_pitch_output));
// Apply same limits as before
if (abs(ballistic_offset_yaw) > 320) {
@@ -127,7 +127,7 @@ int main(int /*argc*/, char* /*argv*/[]) {
std::string target_color = "red";
int cam_id = 0;
cv::Size default_resolution(1280, 720); // Changed to 640x480 for consistency with SJTU project
bool use_ttl = false; // Set to false to disable TTL communication
bool use_ttl = true; // Set to false to disable TTL communication
if (Numbe == 0) {