Skip to content

Commit 36e9422

Browse files
author
Alexander OCU
committed
added update method to rdx csg panel. put xbox update in that update method
1 parent cd0e541 commit 36e9422

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ihmc-high-level-behaviors/src/libgdx/java/us/ihmc/rdx/csg/RDXCSGPanel.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public RDXCSGPanel(DRCRobotModel robotModel, ROS2Node ros2Node, boolean createXb
6464
public RDXCSGPanel(CSGROS2CommunicationHelper communicationHelper, boolean createXboxPlugin)
6565
{
6666
super("CSG Controls");
67-
super.setRenderMethod(this::update);
67+
super.setRenderMethod(this::renderImGuiWidgets);
6868

6969
this.communicationHelper = communicationHelper;
7070

@@ -79,12 +79,15 @@ public RDXCSGPanel(CSGROS2CommunicationHelper communicationHelper, boolean creat
7979

8080
public void update()
8181
{
82-
boolean publishCSGInputCommand = false;
83-
boolean publishCSGParametersCommand = false;
84-
8582
// Update and publish CSG commands from controller first
8683
if (xBoxOneCSGPlugin != null)
8784
xBoxOneCSGPlugin.updateAndPublish();
85+
}
86+
87+
public void renderImGuiWidgets()
88+
{
89+
boolean publishCSGInputCommand = false;
90+
boolean publishCSGParametersCommand = false;
8891

8992
reset(csgStatusMessage);
9093

0 commit comments

Comments
 (0)