Skip to content

Commit

Permalink
sims: fix plasmac2 z axis mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
phillc54 committed Jun 16, 2023
1 parent b4719ae commit 65ff3ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configs/sim/axis/plasma/plasmac2/lib/sim/sim_no_stepgen.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

# ---LOAD COMPONENTS---
loadrt $::KINS(KINEMATICS)
Expand Down Expand Up @@ -59,7 +59,7 @@ addf db_breakaway servo-thread
addf db_arc-ok servo-thread

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

# ---TOOL CHANGE PASSTHROUGH
net sim:tool-number <= iocontrol.0.tool-prep-number
Expand Down
4 changes: 2 additions & 2 deletions configs/sim/axis/plasma/plasmac2/lib/sim/sim_stepgen.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

# ---LOAD COMPONENTS---
loadrt $::KINS(KINEMATICS)
Expand Down Expand Up @@ -50,7 +50,7 @@ addf db_breakaway servo-thread
addf db_arc-ok servo-thread

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

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

0 comments on commit 65ff3ef

Please sign in to comment.