Skip to content

Commit 9369e71

Browse files
committed
sims: fix qtplasmac z axis mapping
1 parent 2283f17 commit 9369e71

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

configs/sim/qtplasmac/sim_no_stepgen.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ---SET CONSTANTS---
44
set numJoints $::KINS(JOINTS)
5-
set z-axis [expr $numJoints - 1]
5+
set zAxis [string first "z" [string tolower $::TRAJ(COORDINATES)]]
66

77
# ---LOAD COMPONENTS---
88
loadrt $::KINS(KINEMATICS)
@@ -59,7 +59,7 @@ addf db_breakaway servo-thread
5959
addf db_arc-ok servo-thread
6060

6161
# ---Z JOINT CONNECTION---
62-
net plasmac:axis-position joint.${z-axis}.pos-fb => plasmac.axis-z-position
62+
net plasmac:axis-position joint.${zAxis}.pos-fb => plasmac.axis-z-position
6363

6464
# ---TOOL CHANGE PASSTHROUGH
6565
net sim:tool-number <= iocontrol.0.tool-prep-number

configs/sim/qtplasmac/sim_stepgen.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# ---SET CONSTANTS---
44
set numJoints $::KINS(JOINTS)
5-
set z-axis [string first "z" [string tolower $::TRAJ(COORDINATES)]]
5+
set zAxis [string first "z" [string tolower $::TRAJ(COORDINATES)]]
66

77
# ---LOAD COMPONENTS---
88
loadrt $::KINS(KINEMATICS)
@@ -50,7 +50,7 @@ addf db_breakaway servo-thread
5050
addf db_arc-ok servo-thread
5151

5252
# ---Z JOINT CONNECTION---
53-
net plasmac:axis-position joint.${z-axis}.pos-fb => plasmac.axis-z-position
53+
net plasmac:axis-position joint.${zAxis}.pos-fb => plasmac.axis-z-position
5454

5555
# ---TOOL CHANGE PASSTHROUGH
5656
net sim:tool-number <= iocontrol.0.tool-prep-number

0 commit comments

Comments
 (0)