Skip to content

Commit

Permalink
Merge pull request #23 from ichiro-its/hotfix/fix-pan-dist-to-tilt-ca…
Browse files Browse the repository at this point in the history
…lculation

[Hotfix] - Fix Pan-Dist to Tilt Calculation
  • Loading branch information
FaaizHaikal authored Jun 30, 2024
2 parents 54c62c8 + 049f765 commit 60619f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atama/head/process/head.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ double Head::calculate_tilt_from_pan_distance(double distance)
for (int i = 0; i < pan_distance_to_tilt_coefficients.size(); i++)
{
double x1 = pow((pan + pan_offset), distance_regression_degrees[i][0]);
double x2 = pow((tilt + tilt_offset), distance_regression_degrees[i][1]);
double x2 = pow((distance), distance_regression_degrees[i][1]);

tilt += pan_distance_to_tilt_coefficients[coef_index++] * x1 * x2;
}
Expand Down

0 comments on commit 60619f5

Please sign in to comment.