Skip to content

Commit b8a2cf5

Browse files
authored
Merge pull request #75 from BCLab-UNM/bug-physical_manual_driving
Fixed manual driving control for physical rovers
2 parents 8188b19 + bc9374d commit b8a2cf5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/abridge/src/abridge.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,6 @@ void driveCommandHandler(const geometry_msgs::Twist::ConstPtr& message) {
165165
// the hardware to fail when the robot moves itself too violently.
166166
int max_motor_cmd = 120;
167167

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-
178168
// Check that the resulting motor commands do not exceed the specified safe maximum value
179169
if (left > max_motor_cmd)
180170
{

0 commit comments

Comments
 (0)