Skip to content

Commit 406017e

Browse files
authored
Limit head pid (#535)
2 parents e4b5b30 + 52f2409 commit 406017e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

bitbots_lowlevel/bitbots_ros_control/config/wolfgang.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,34 @@ wolfgang_hardware_interface:
123123
Profile_Acceleration: 0 # 0 for infinite
124124
Profile_Velocity: 0 # 0 for infinite
125125

126+
ROM_RAM_HEAD: # Because we use X-Series servos for the knees, we need to set different values
127+
# all names of parameters have to be the same as on the dynamixel table (see dynamixel_workbench_toolbox/src/dynamixel_item.cpp )
128+
# all values are directly values this means not Celsius or rad but the value used by the servo firmware see datasheet
129+
# ROM
130+
Return_Delay_Time: 0 # this is a stupid function which has always to be zero or nothing will work correctly anymore
131+
Temperature_Limit: 60 # [about 1 deg C]
132+
Max_Voltage_Limit: 160 #[About 0.1V]
133+
Min_Voltage_Limit: 95 #[About 0.1V]
134+
PWM_Limit: 885 # 885 = 100%
135+
#Current_Limit: 2047 #[ 3.36 mA] #currently not used since MX-64 and MX-106 have different max values
136+
#todo acceleration limit does not exist as register?
137+
Acceleration_Limit: 32767 # [214.577 Rev/min2]
138+
Velocity_Limit: 1023 # [0.229rpm]
139+
Max_Position_Limit: 4095 # [0.088 deg]
140+
Min_Position_Limit : 0 # [0.088 deg]
141+
# RAM
142+
Status_Return_Level: 2 # 0 status for all instructions(not sync or bulk), 1 ping and read, 2 only ping
143+
Velocity_I_Gain: 1920 # [/ 65,536]
144+
Velocity_P_Gain: 100 # [/128]
145+
Position_D_Gain: 0 #2800 # [/16] 0~16,383
146+
Position_I_Gain: 0 #180000 # [/ 65,536] 0~16,383
147+
#If robot starts to tremble, reduce Position_P_Gain
148+
Position_P_Gain: 500 #1100 # [/ 128] 0~16,383
149+
Feedforward_2nd_Gain: 0 # [/4]
150+
Feedforward_1st_Gain: 0 # [/4]
151+
Profile_Acceleration: 0 # 0 for infinite
152+
Profile_Velocity: 0 # 0 for infinite
153+
126154
imu:
127155
do_adaptive_gain: False
128156
do_bias_estimation: False
@@ -269,8 +297,10 @@ wolfgang_hardware_interface:
269297
model_number: 311
270298
mounting_offset: 0.0
271299
joint_offset: 0.0
300+
group: HEAD
272301
HeadTilt:
273302
id: 20
274303
model_number: 311
275304
mounting_offset: 0.0
276305
joint_offset: 0.0
306+
group: HEAD

0 commit comments

Comments
 (0)