Skip to content

Commit 98cb1db

Browse files
authored
Merge pull request #32 from ichiro-its/hotfix/fix-positioning-center-90-deg
[Hotfix] Fix center positioning for 90 degree kick
2 parents 76a22aa + efabd29 commit 98cb1db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/suiryoku/locomotion/process/locomotion.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ bool Locomotion::position_kick_range_pan_tilt(const keisan::Angle<double> & dire
911911
auto target_pan = left_kick ? left_kick_target_pan : right_kick_target_pan;
912912

913913
if (is_positioning_center) {
914-
target_pan = (left_kick) ? position_center_left_range_pan : -position_center_right_range_pan;
914+
target_pan = (left_kick) ? -position_center_right_range_pan : position_center_left_range_pan;
915915
}
916916

917917
double delta_pan = (target_pan - pan).degree();

0 commit comments

Comments
 (0)