We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7926466 commit a481324Copy full SHA for a481324
1 file changed
src/modelec_com/src/pcb_odo_interface.cpp
@@ -79,8 +79,8 @@ namespace Modelec
79
if (fabs(left_axis) < 0.05) left_axis = 0.0;
80
if (fabs(right_axis) < 0.05) right_axis = 0.0;
81
82
- int left_motor = static_cast<int>(forward * 626 - turn * 626);
83
- int right_motor = static_cast<int>(forward * 626 + turn * 626);
+ int left_motor = static_cast<int>(left_axis * 626 - right_axis * 626);
+ int right_motor = static_cast<int>(left_axis * 626 + right_axis * 626);
84
85
// int left_motor = static_cast<int>(left_axis * 626);
86
// int right_motor = static_cast<int>(right_axis * 626);
0 commit comments