Skip to content

Commit

Permalink
Change deadzone zero value type to float
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszlagan committed Dec 4, 2024
1 parent 2f2a297 commit 1e784ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def handle_message(self, msg: CRSFMessage):
t.angular.z = -channels[Switch.LEFT_VERTICAL] * angular_speed_modifier

if abs(t.linear.x) < PAD_DEADZONE:
t.linear.x = 0
t.linear.x = 0.0
if abs(t.angular.z) < PAD_DEADZONE:
t.angular.z = 0
t.angular.z = 0.0

self.cmd_vel_publisher.publish(t)

Expand Down

0 comments on commit 1e784ba

Please sign in to comment.