Skip to content

Commit 1fcbbbe

Browse files
committed
Fixed bug in vel control method
1 parent 3b58f82 commit 1fcbbbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drone_wrapper/src/drone_wrapper/drone_wrapper_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def set_cmd_vel(self, vx=0, vy=0, vz=0, az=0, frame="flu"):
437437
if abs(vz) <= EPSILON:
438438
self.is_z = True
439439
else:
440-
self.setpoint_raw.velocity.z = vtwist.linear.z
440+
self.setpoint_raw.velocity.z = twist.linear.z
441441
self.is_z = False
442442

443443
if self.is_xy:

0 commit comments

Comments
 (0)