Skip to content

Commit 619aacb

Browse files
committed
wip status api
1 parent 05db94c commit 619aacb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

xbot2_gui/Monitoring/BarPlot/BarPlot.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ function setJointStateMessage(msg)
8282

8383
for(var i = 0; i < jointNames.length; i++)
8484
{
85-
let bar = container.itemAt(i).bar
85+
let barPlotItem = container.itemAt(i)
86+
let bar = barPlotItem.bar
8687

8788
// set value
8889
bar.value = fieldMsg[i]
@@ -97,8 +98,8 @@ function setJointStateMessage(msg)
9798

9899
// set status
99100
if(motorStatus !== undefined) {
100-
bar.setMotorStatus(motorStatus[i])
101-
bar.setBrakeStatus(brakeStatus[i])
101+
barPlotItem.motorStatus = motorStatus[i]
102+
barPlotItem.brakeStatus = brakeStatus[i]
102103
}
103104
}
104105
}

0 commit comments

Comments
 (0)