Fixing the 2021 bot3 superstructure plotter
Resolving the logical merge conflict between two commits to make it build.
Signed-off-by: Sabina Leaver <100027607@mvla.net>
Change-Id: Id27ff8f623b18c5ce4acc14d98410e06b085d917
diff --git a/y2021_bot3/control_loops/superstructure/superstructure_plotter.ts b/y2021_bot3/control_loops/superstructure/superstructure_plotter.ts
index 0ceafae..f453d64 100644
--- a/y2021_bot3/control_loops/superstructure/superstructure_plotter.ts
+++ b/y2021_bot3/control_loops/superstructure/superstructure_plotter.ts
@@ -17,11 +17,8 @@
const position = aosPlotter.addMessageSource('/superstructure', 'y2021_bot3.control_loops.superstructure.Position');
const robotState = aosPlotter.addMessageSource('/aos', 'aos.RobotState');
- var currentTop = 0;
-
const intakePlot =
- aosPlotter.addPlot(element, [0, currentTop], [DEFAULT_WIDTH, DEFAULT_HEIGHT / 2]);
- currentTop += DEFAULT_HEIGHT / 2;
+ aosPlotter.addPlot(element, [DEFAULT_WIDTH, DEFAULT_HEIGHT / 2]);
intakePlot.plot.getAxisLabels().setTitle('Intake');
intakePlot.plot.getAxisLabels().setXLabel(TIME);
intakePlot.plot.getAxisLabels().setYLabel('Volts');
@@ -32,8 +29,7 @@
intakePlot.addMessageLine(status, ['intake_speed']).setColor(RED);
const outtakePlot =
- aosPlotter.addPlot(element, [0, currentTop], [DEFAULT_WIDTH, DEFAULT_HEIGHT / 2]);
- currentTop += DEFAULT_HEIGHT / 2;
+ aosPlotter.addPlot(element, [DEFAULT_WIDTH, DEFAULT_HEIGHT / 2]);
outtakePlot.plot.getAxisLabels().setTitle('Outtake');
outtakePlot.plot.getAxisLabels().setXLabel(TIME);
outtakePlot.plot.getAxisLabels().setYLabel('Volts');