Skip to content

Commit

Permalink
fix PIDgain and delete land_pub
Browse files Browse the repository at this point in the history
  • Loading branch information
heissereal committed Jan 5, 2024
1 parent 3586847 commit d6a55a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions robots/mini_quadrotor/script/approaching_human_with_depth.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def __init__(self):
self.pose = Odometry()
self.euler = Vector3()

self.Kp = 0.05
self.Kp = 0.1
self.Ki = 0.0001
self.Kd = 0.01
self.Kd = 0.07
#self.offset = 0.09/(0.08*abs(self.degree[2]-self.initial_position[2])+0.3) + 1

#depth(OpenCV image)
Expand Down Expand Up @@ -227,7 +227,7 @@ def timerCallback(self,event):
self.land_cnt += 1
if self.land_cnt >= 10:
rospy.loginfo("land!")
self.land_pub.publish()
#self.land_pub.publish()
self.rotate_cnt += 1
else:
rospy.loginfo("don't see people")
Expand Down

0 comments on commit d6a55a2

Please sign in to comment.