Skip to content

Commit a481324

Browse files
committed
joy value
1 parent 7926466 commit a481324

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modelec_com/src/pcb_odo_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ namespace Modelec
7979
if (fabs(left_axis) < 0.05) left_axis = 0.0;
8080
if (fabs(right_axis) < 0.05) right_axis = 0.0;
8181

82-
int left_motor = static_cast<int>(forward * 626 - turn * 626);
83-
int right_motor = static_cast<int>(forward * 626 + turn * 626);
82+
int left_motor = static_cast<int>(left_axis * 626 - right_axis * 626);
83+
int right_motor = static_cast<int>(left_axis * 626 + right_axis * 626);
8484

8585
// int left_motor = static_cast<int>(left_axis * 626);
8686
// int right_motor = static_cast<int>(right_axis * 626);

0 commit comments

Comments
 (0)