-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Control board now named 'ankle_setup_control_board', works with linea…
…r motion in range 0-100 [mm], fixed indentation
- Loading branch information
1 parent
b1caad2
commit cb81c3d
Showing
9 changed files
with
156 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
158 changes: 70 additions & 88 deletions
158
experimentalSetups/ankleSetup/hardware/motorControl/ankle-setup-mc.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,109 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE devices PUBLIC "-//YARP//DTD yarprobotinterface 3.0//EN" "http://www.yarp.it/DTD/yarprobotinterfaceV3.0.dtd"> | ||
|
||
|
||
<device xmlns:xi="http://www.w3.org/2001/XInclude" name="ankle-setup-mc" type="embObjMotionControl"> | ||
|
||
<xi:include href="../../general.xml" /> | ||
<xi:include href="../../hardware/electronics/ankle-setup-eln.xml" /> | ||
<xi:include href="../../hardware/mechanicals/ankle-setup-mec.xml" /> | ||
<xi:include href="./ankle-setup-mc_service.xml" /> | ||
|
||
<!-- joint number 0 --> | ||
<!-- joint name --> | ||
<group name="LIMITS"> | ||
<param name="jntPosMax"> 0 </param> | ||
<param name="jntPosMin"> 0 </param> | ||
<param name="jntVelMax"> 100 </param> | ||
<param name="motorNominalCurrents"> 5000 </param> | ||
<param name="motorPeakCurrents"> 10000 </param> | ||
<param name="motorOverloadCurrents"> 15000 </param> | ||
<param name="motorPwmLimit"> 32000 </param> | ||
<!-- joint number 0 --> | ||
<param name="jntPosMax"> -0.002 </param> | ||
<param name="jntPosMin"> -99 </param> | ||
<param name="jntVelMax"> 100 </param> | ||
<param name="motorNominalCurrents"> 5000 </param> | ||
<param name="motorPeakCurrents"> 10000 </param> | ||
<param name="motorOverloadCurrents"> 15000 </param> | ||
<param name="motorPwmLimit"> 32000 </param> | ||
</group> | ||
|
||
<group name="TIMEOUTS"> | ||
<param name="velocity"> 100 </param> | ||
<param name="velocity"> 100 </param> | ||
</group> | ||
|
||
<group name="IMPEDANCE"> | ||
<param name="stiffness"> 0 </param> | ||
<param name="damping"> 0 </param> | ||
<param name="stiffness"> 0 </param> | ||
<param name="damping"> 0 </param> | ||
</group> | ||
|
||
<group name="CONTROLS"> | ||
<param name="positionControl"> POS_PID_DEFAULT </param> | ||
<param name="velocityControl"> POS_PID_DEFAULT </param> | ||
<param name="mixedControl"> POS_PID_DEFAULT </param> | ||
<param name="torqueControl"> TRQ_PID_DEFAULT </param> | ||
<param name="currentPid"> 2FOC_CUR_CONTROL </param> | ||
<param name="speedPid"> 2FOC_VEL_CONTROL </param> | ||
<param name="positionControl"> POS_PID_DEFAULT </param> | ||
<param name="velocityControl"> POS_PID_DEFAULT </param> | ||
<param name="mixedControl"> POS_PID_DEFAULT </param> | ||
<param name="torqueControl"> TRQ_PID_DEFAULT </param> | ||
<param name="currentPid"> 2FOC_CUR_CONTROL </param> | ||
<param name="speedPid"> 2FOC_VEL_CONTROL </param> | ||
</group> | ||
|
||
|
||
<!-- default position PID: begin --> | ||
|
||
<group name="POS_PID_DEFAULT"> | ||
<param name="controlLaw"> minjerk </param> | ||
<param name="outputType"> pwm </param> | ||
<param name="fbkControlUnits"> metric_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kp"> 500 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 100 </param> | ||
<param name="maxOutput"> 32000 </param> | ||
<param name="maxInt"> 3000 </param> | ||
<param name="stictionUp"> 0 </param> | ||
<param name="stictionDown"> 0 </param> | ||
<param name="kff"> 0 </param> | ||
<param name="controlLaw"> minjerk </param> | ||
<param name="outputType"> pwm </param> | ||
<param name="fbkControlUnits"> metric_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kp"> 500 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 100 </param> | ||
<param name="maxOutput"> 32000 </param> | ||
<param name="maxInt"> 3000 </param> | ||
<param name="stictionUp"> 0 </param> | ||
<param name="stictionDown"> 0 </param> | ||
<param name="kff"> 0 </param> | ||
</group> | ||
|
||
<!-- default position PID: end --> | ||
|
||
|
||
<!-- default torque PID: begin --> | ||
<group name="TRQ_PID_DEFAULT"> | ||
<param name="controlLaw"> torque </param> | ||
<param name="outputType"> current </param> | ||
<param name="fbkControlUnits"> machine_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kp"> 1.8 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 0 </param> | ||
<param name="maxOutput"> 2000 </param> | ||
<param name="maxInt"> 1000 </param> | ||
<param name="ko"> 0.55 </param> | ||
<param name="stictionUp"> 0 </param> | ||
<param name="stictionDown"> 0 </param> | ||
<param name="kff"> 0 </param> | ||
<param name="kbemf"> 0 </param> | ||
<param name="filterType"> 3 </param> | ||
<param name="ktau"> 0 </param> | ||
<param name="viscousPos"> 1.0 </param> | ||
<param name="viscousNeg"> 1.0 </param> | ||
<param name="coulombPos"> 0.0 </param> | ||
<param name="coulombNeg"> 0.0 </param> | ||
<param name="controlLaw"> torque </param> | ||
<param name="outputType"> current </param> | ||
<param name="fbkControlUnits"> machine_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kp"> 1.8 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 0 </param> | ||
<param name="maxOutput"> 2000 </param> | ||
<param name="maxInt"> 1000 </param> | ||
<param name="ko"> 0.55 </param> | ||
<param name="stictionUp"> 0 </param> | ||
<param name="stictionDown"> 0 </param> | ||
<param name="kff"> 0 </param> | ||
<param name="kbemf"> 0 </param> | ||
<param name="filterType"> 3 </param> | ||
<param name="ktau"> 0 </param> | ||
<param name="viscousPos"> 1.0 </param> | ||
<param name="viscousNeg"> 1.0 </param> | ||
<param name="coulombPos"> 0.0 </param> | ||
<param name="coulombNeg"> 0.0 </param> | ||
</group> | ||
<!-- default torque PID: end --> | ||
|
||
|
||
<!-- other default PIDs: begin --> | ||
|
||
<group name="2FOC_CUR_CONTROL"> | ||
<param name="controlLaw"> low_lev_current </param> | ||
<param name="fbkControlUnits"> machine_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kp"> 8 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 2 </param> | ||
<param name="shift"> 10 </param> | ||
<param name="maxOutput"> 32000 </param> | ||
<param name="maxInt"> 32000 </param> | ||
<param name="kff"> 0 </param> | ||
<param name="controlLaw"> low_lev_current </param> | ||
<param name="fbkControlUnits"> machine_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kp"> 8 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 2 </param> | ||
<param name="shift"> 10 </param> | ||
<param name="maxOutput"> 32000 </param> | ||
<param name="maxInt"> 32000 </param> | ||
<param name="kff"> 0 </param> | ||
</group> | ||
|
||
<group name="2FOC_VEL_CONTROL"> | ||
<param name="controlLaw"> low_lev_speed </param> | ||
<param name="fbkControlUnits"> machine_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kff"> 0 </param> | ||
<param name="kp"> 12 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 16 </param> | ||
<param name="shift"> 10 </param> | ||
<param name="maxOutput"> 32000 </param> | ||
<param name="maxInt"> 32000 </param> | ||
<param name="controlLaw"> low_lev_speed </param> | ||
<param name="fbkControlUnits"> machine_units </param> | ||
<param name="outputControlUnits"> machine_units </param> | ||
<param name="kff"> 0 </param> | ||
<param name="kp"> 12 </param> | ||
<param name="kd"> 0 </param> | ||
<param name="ki"> 16 </param> | ||
<param name="shift"> 10 </param> | ||
<param name="maxOutput"> 32000 </param> | ||
<param name="maxInt"> 32000 </param> | ||
</group> | ||
|
||
<!-- other default PIDs: end --> | ||
|
||
|
||
<!-- custom PIDs: begin --> | ||
<!-- custom PIDs: end --> | ||
|
||
<group name="OTHER_CONTROL_PARAMETERS"> | ||
<param name="deadZone"> 0.0049 </param> | ||
<param name="deadZone"> 0.0049 </param> | ||
</group> | ||
|
||
</device> |
Oops, something went wrong.