Skip to content

Conversation

vigneshraja123717
Copy link
Collaborator

Implemented 6p capture command to display w2h score in terminal and plot 6 data points

lib/diag.c Outdated
printf("Eye Left %d\n", out.eye_left);
printf("Eye Right %d\n", out.eye_right);
printf("Eye top @X1 %d\n", out.eye_top_x1);
printf("Eye Bottom @X1 %d\n", out.eye_bottom_x1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

int32_t eye_left;
int32_t eye_right;
int32_t eye_top_x1;
int32_t eye_bottom_x1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

cli/graph.c Outdated
plot_point(X_LAYOUT_SHIFT + Y_PRINT_OFFSET, data[2] + X_PRINT_OFFSET); // (30,15)
plot_point(X_LAYOUT_SHIFT + Y_PRINT_OFFSET, data[3] + X_PRINT_OFFSET); // (35,18)
if(plot_6p_points == true)
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

over all the places, braces not used in this way

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected and maintained common way

cli/graph.c Outdated
if(plot_6p_points == true)
{
data[4] = data[4] + Y_LAYOUT_SHIFT;
data[5] = data[5] + Y_LAYOUT_SHIFT;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected

cli/graph.c Outdated
}
else
{
plot_point(X_LAYOUT_SHIFT + Y_PRINT_OFFSET, data[2] + X_PRINT_OFFSET);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment and braces correction overall

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

cli/diag.c Outdated
int port, lane, gen;
char fname[100];
FILE *f;
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct here

lib/diag.c Outdated
else if(out.status == EOM_SUCCESS) {
printf("Eye Left %d\n", out.eye_left);
printf("Eye Right %d\n", out.eye_right);
printf("Eye top %d\n", out.eye_top_x1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

cli/diag.c Outdated
if (!ret) {
w2h_score = calculate_w2h_score(&data_6p_out);
printf("W2H Score for Lane %d is %d\n", lane_id, w2h_score);
eye_plot_graph(eye_6p_data, true, w2h_score);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment

@pvengat pvengat merged commit 8c8175c into main Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants