Skip to content

Commit

Permalink
fixed bug where VG tank charts tracked other tank
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeet-bansal committed Jan 15, 2018
1 parent 09a4d78 commit a50f5a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/GUI/ControllerVG.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ public void run() {
int nthLast = 0;
Gauge[] arr = psysGauges.toArray(new Gauge[0]);

double tank1Y = arr[arr.length - ++nthLast].getValue();
series1.getData().remove(0);
series1.getData().add(new XYChart.Data<>(Integer.toString(chartTime), tank1Y));

double tank2Y = arr[arr.length - ++nthLast].getValue();
series2.getData().remove(0);
series2.getData().add(new XYChart.Data<>(Integer.toString(chartTime), tank2Y));

double tank1Y = arr[arr.length - ++nthLast].getValue();
series1.getData().remove(0);
series1.getData().add(new XYChart.Data<>(Integer.toString(chartTime), tank1Y));

seriesThrust.getData().remove(0);
seriesThrust.getData().add(new XYChart.Data<>(Integer.toString(chartTime), Math.round(thrustVal)));
}
Expand Down

0 comments on commit a50f5a8

Please sign in to comment.