Skip to content

Commit 1c3d1b2

Browse files
update amc, amcfoc lego and template (#759)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 0b85e6e commit 1c3d1b2

File tree

9 files changed

+51
-31
lines changed

9 files changed

+51
-31
lines changed

experimentalSetups/lego_setup_amc_advfoc/hardware/electronics/setup-eb2-j0_2-eln.xml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,41 @@
1010
<group name="ETH_BOARD_PROPERTIES">
1111
<param name="IpAddress"> 10.0.1.1 </param>
1212
<param name="IpPort"> 12345 </param>
13-
<param name="Type"> amc </param>
13+
<param name="Type"> amc </param>
1414
<param name="maxSizeRXpacket"> 768 </param>
1515
<param name="maxSizeROP"> 384 </param>
1616
</group>
1717

1818
<group name="ETH_BOARD_SETTINGS">
19-
<param name="Name"> "setup-eb2-j0_2" </param>
19+
<param name="Name"> "amc" </param>
2020

2121
<group name="RUNNINGMODE">
2222

23-
<!-- execution can be [synchronized, besteffort].
24-
-->
23+
<!-- execution can be [synchronized, besteffort].-->
2524
<param name="execution"> synchronized </param>
2625
<param name="period"> 1000 </param>
27-
<param name="safetygap"> 150 </param>
2826
<param name="maxTimeOfRXactivity"> 400 </param>
2927
<param name="maxTimeOfDOactivity"> 300 </param>
3028
<param name="maxTimeOfTXactivity"> 300 </param>
29+
<param name="safetygap"> 100 </param>
3130
<param name="TXrateOfRegularROPs"> 5 </param>
3231

3332

3433
<group name="LOGGING">
3534

3635
<group name="IMMEDIATE">
3736

38-
<param name="emitRXDOTXoverflow"> false </param>
39-
<param name="emitPERIODoverflow"> true </param>
37+
<param name="emitRXDOTXoverflow"> true </param>
38+
<param name="emitPERIODoverflow"> true </param>
4039

4140
</group>
4241

4342
<group name="PERIODIC">
4443

45-
<param name="period"> 10.0 </param>
46-
<param name="emitRXDOTXstatistics"> true </param>
47-
<param name="emitPERIODminavgmax"> true </param>
48-
<param name="emitPERIODhistogram"> true </param>
44+
<param name="period"> 10.0 </param>
45+
<param name="emitRXDOTXminavgmax"> true </param>
46+
<param name="emitPERIODminavgmax"> true </param>
47+
<param name="emitPERIODhistogram"> true </param>
4948

5049
</group>
5150

experimentalSetups/lego_setup_amc_advfoc/hardware/mechanicals/setup-eb2-j0_2-mec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<param name="HasSpeedEncoder"> 0 </param>
4646
<param name="RotorIndexOffset"> 0 </param>
4747
<param name="MotorPoles"> 14 </param>
48+
<param name="Kbemf"> 0 </param>
4849
</group>
4950

5051
<group name="COUPLINGS">

experimentalSetups/lego_setup_amc_advfoc/hardware/motorControl/setup-eb2-j0_2-mc.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
</group>
2525

2626
<group name="TIMEOUTS">
27-
<param name="velocity"> 100 </param>
27+
<param name="velocity"> 300 </param>
28+
<param name="torque"> 300 </param>
29+
<param name="pwm"> 300 </param>
30+
<param name="current"> 300 </param>
31+
<param name="torque_measure"> 300 </param>
2832
</group>
2933

3034
<group name="IMPEDANCE">

experimentalSetups/lego_setup_amc_advfoc/hardware/motorControl/setup-eb2-j0_2-mc_PWM.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
</group>
2323

2424
<group name="TIMEOUTS">
25-
<param name="velocity"> 100 </param>
25+
<param name="velocity"> 300 </param>
26+
<param name="torque"> 300 </param>
27+
<param name="pwm"> 300 </param>
28+
<param name="current"> 300 </param>
29+
<param name="torque_measure"> 300 </param>
2630
</group>
2731

2832
<group name="IMPEDANCE">

experimentalSetups/lego_setup_amc_advfoc/hardware/motorControl/setup-eb2-j0_2-mc_service.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
</group>
105105
<group name="FIRMWARE">
106106
<param name="major"> 3 2 </param>
107-
<param name="minor"> 9 2 </param>
107+
<param name="minor"> 12 3 </param>
108108
<param name="build"> 0 0 </param>
109109
</group>
110110
</group>

experimentalSetups/lego_setup_amcfoc_advfoc/hardware/electronics/setup-eb2-j0_0-eln.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,25 @@
1818
<group name="ETH_BOARD_SETTINGS">
1919
<param name="Name"> "amcfoc" </param>
2020
<group name="RUNNINGMODE">
21+
<param name="execution"> synchronized </param>
2122
<param name="period"> 1000 </param>
2223
<param name="maxTimeOfRXactivity"> 400 </param>
2324
<param name="maxTimeOfDOactivity"> 300 </param>
2425
<param name="maxTimeOfTXactivity"> 300 </param>
26+
<param name="safetygap"> 100 </param>
2527
<param name="TXrateOfRegularROPs"> 5 </param>
28+
2629
<group name="LOGGING">
2730
<group name="IMMEDIATE">
2831
<param name="emitRXDOTXoverflow"> true </param>
32+
<param name="emitPERIODoverflow"> true </param>
2933
</group>
34+
3035
<group name="PERIODIC">
31-
<param name="period"> 10 </param>
32-
<param name="emitRXDOTXstatistics"> false </param>
36+
<param name="period"> 10 </param>
37+
<param name="emitRXDOTXminavgmax"> true </param>
38+
<param name="emitPERIODminavgmax"> true </param>
39+
<param name="emitPERIODhistogram"> true </param>
3340
</group>
3441
</group>
3542
</group>

experimentalSetups/lego_setup_amcfoc_advfoc/hardware/mechanicals/setup-eb2-j0_0-mec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<param name="HasSpeedEncoder"> 0 </param>
4646
<param name="RotorIndexOffset"> 0 </param>
4747
<param name="MotorPoles"> 14 </param>
48+
<param name="Kbemf"> 0 </param>
4849
</group>
4950

5051
<group name="COUPLINGS">

experimentalSetups/lego_setup_amcfoc_advfoc/hardware/motorControl/setup-eb2-j0_0-mc.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
</group>
2525

2626
<group name="TIMEOUTS">
27-
<param name="velocity"> 100 </param>
27+
<param name="velocity"> 300 </param>
28+
<param name="torque"> 300 </param>
29+
<param name="pwm"> 300 </param>
30+
<param name="current"> 300 </param>
31+
<param name="torque_measure"> 300 </param>
2832
</group>
2933

3034
<group name="IMPEDANCE">

iCubTemplates/iCubTemplateV6_0/hardware/electronics/body_part--ebX-jA_B-eln.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,24 @@
5353
of late phases.
5454
You should use this mode if you want synchronous execution so that some actuations to motors do not drift inside the period
5555
56-
------- -------- ------ -------- --------- ------ --
56+
_______ ________ ______ ________ _________ ______ __
5757
| RX | | DO | | TX | | RX | | DO | | TX | | RX
58-
------- -------- ------ --------- --------- ------ ---
58+
_______ ________ ______ _________ _________ ______ ___
5959
^ ^ ^ ^ ^ ^ ^
60-
o-----------d-----------------t-----------o-----------d-----------------t-----------o----------
60+
o- - - - - -d- - - - - - - - t- - - - - -o- - - - - -d- - - - - - - - -t- - - - - -o- - - - -
6161
| period n | period n+1 | period n+2
62-
|-rx budget-|-do budget-------|-tx budget-|-rx budget-|-do budget-------|-tx budget-| ...
62+
|-rx budget-|-do budget- - - -|-tx budget-|-rx budget-|-do budget- - - -|-tx budget-| ...
6363
6464
Figure. Typical synchronized execution w/out overflow. Note that teh values of rx/do/tx budget are onfigurable w/ parameters
6565
maxTimeOfRXactivity, maxTimeOfDoactivity and maxTimeOfTXactivity
6666
67-
-------------- -------- ------ -------- --------- ------ --
67+
______________ ________ ______ ________ _________ ______ __
6868
| RX || DO | | TX | | RX | | DO | | TX | | RX
69-
-------------- -------- ------ --------- --------- ------ ---
69+
______________ ________ ______ _________ _________ ______ ___
7070
^ ^^^^^ ^ ^ ^ ^ ^
71-
o-----------d-----------------t-----------o-----------d-----------------t-----------o----------
71+
o- - - - - -d- - - - - - - - -t- - - - - -o- - - - - -d- - - - - - - - -t- - - - - -o- - - - - -
7272
| period n | period n+1 | period n+2
73-
|-rx budget-|-do budget-------|-tx budget-|-rx budget-|-do budget-------|-tx budget-| ...
73+
|-rx budget |-do budget |-tx budget |-rx budget |-do budget |-tx budget | ...
7474
7575
Figure. Typical synchronized execution w/ overflow of RX
7676
@@ -91,20 +91,20 @@
9191
You should use this mode if you have difficulties to determine correct slots for the synchronized execution mode and you can accept
9292
some drifts of execution inside the period.
9393
94-
------- -------- ------ ------------------ --------- ------ --
94+
_______ ________ ______ __________________ _________ ______ __
9595
| RX || DO || TX | | RX || DO || TX | | RX
96-
------- -------- ------ ------------------ --------- ------ ---
96+
_______ ________ ______ __________________ _________ ______ ___
9797
^ ^ ^
98-
o-----------------------------------------o-----------------------------------------o----------
98+
o- - - - - - - - - - - - - - - - - - - - -o- - - - - - - - - - - - - - - - - - - - -o- - - - -
9999
| period n | period n+1 | period n+2 |
100100
101101
Figure. Typical best effort execution w/out overflow
102102
103-
----------------------------- ------------- ------ ------- ------ ------ --
103+
_____________________________ _____________ ______ _______ ______ ______ __
104104
| RX || DO || TX || RX || DO || TX | | RX
105-
----------------------------- ------------- ------ ------- ------ ------ ---
105+
_____________________________ _____________ ______ _______ ______ ______ ___
106106
^ ^^^^^^^^^^^^^ (activation remains valid) ^
107-
o-----------------------------------------o-----------------------------------------o----------
107+
o- - - - - - - - - - - - - - - - - - - - -o- - - - - - - - - - - - - - - - - - - - -o- - - - -
108108
| period n | period n+1 | period n+2
109109
110110
Figure. Typical best effort execution w/ overflow to next period (shortened for sake of displaying)

0 commit comments

Comments
 (0)