-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/w2h #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/w2h #17
Conversation
…a point plot and w2h score
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
inc/switchtec/diag.h
Outdated
int32_t eye_left; | ||
int32_t eye_right; | ||
int32_t eye_top_x1; | ||
int32_t eye_bottom_x1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment
There was a problem hiding this comment.
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) | ||
{ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
2792e88
to
60d465d
Compare
60d465d
to
aa46416
Compare
aa46416
to
da8fafe
Compare
2c5e8d0
to
2bff74b
Compare
cli/diag.c
Outdated
int port, lane, gen; | ||
char fname[100]; | ||
FILE *f; | ||
{ |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment
Implemented 6p capture command to display w2h score in terminal and plot 6 data points