|
@@ -43,7 +43,7 @@ class BaseController:
|
|
|
self.timeout = rospy.get_param("~base_controller_timeout", 0.7)
|
|
|
|
|
|
pid_params = dict()
|
|
|
- pid_params['wheel_diameter'] = rospy.get_param("~wheel_diameter", 0.059)
|
|
|
+ pid_params['wheel_diameter'] = rospy.get_param("~wheel_diameter", 0.058)
|
|
|
pid_params['wheel_track'] = rospy.get_param("~wheel_track", 0.126)
|
|
|
pid_params['encoder_resolution'] = rospy.get_param("~encoder_resolution", 11)
|
|
|
pid_params['gear_reduction'] = rospy.get_param("~gear_reduction", 103)
|
|
@@ -71,7 +71,7 @@ class BaseController:
|
|
|
self.setup_pid(pid_params)
|
|
|
|
|
|
# How many encoder ticks are there per meter?
|
|
|
- self.ticks_per_meter = self.encoder_resolution*self.gear_reduction*4/(self.wheel_diameter*pi)
|
|
|
+ self.ticks_per_meter = self.encoder_resolution*self.gear_reduction*2/(self.wheel_diameter*pi)
|
|
|
self.ticks_per_meter = self.ticks_per_meter/self.linear_scale_correction
|
|
|
|
|
|
# What is the maximum acceleration we will tolerate when changing wheel speeds?
|