We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8188b19 + bc9374d commit b8a2cf5Copy full SHA for b8a2cf5
src/abridge/src/abridge.cpp
@@ -165,16 +165,6 @@ void driveCommandHandler(const geometry_msgs::Twist::ConstPtr& message) {
165
// the hardware to fail when the robot moves itself too violently.
166
int max_motor_cmd = 120;
167
168
- if (currentMode == 1)
169
- {
170
- // Assumes left and right are always between -1 and 1
171
- float linear = left * max_motor_cmd;
172
- float angular = right * max_motor_cmd;
173
-
174
- left = linear - angular;
175
- right = linear + angular;
176
- }
177
178
// Check that the resulting motor commands do not exceed the specified safe maximum value
179
if (left > max_motor_cmd)
180
{
0 commit comments