Skip to content

Commit

Permalink
Reduce the number of confirmations needed
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Sep 27, 2024
1 parent 128ef0e commit bba4825
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def pose_detect(self):
# Stamp the message with the current time
flag_msg.data = letter
self.semaphore_flag_publisher.publish(flag_msg)
self.get_logger().info('Letter detected is: ' + letter)
self.get_logger().info(f'Letter detected is: {letter}')

self.autonomous_lights()

Expand Down Expand Up @@ -257,7 +257,7 @@ def angle_with_y(v):
self.dir_confirm = 1
self.dir = dir_temp

if self.dir_confirm > 4:
if self.dir_confirm >= 3:
cmd_vel_msg = Twist()
if self.dir == Dir.LEFT:
cmd_vel_msg.angular.z = 0.4
Expand Down

0 comments on commit bba4825

Please sign in to comment.