Add Position Encoder and Reader PID Plots
The position encoder plot is useful for debugging drivetrain issues
and the reader pid plot tells us if wpilib interface gets reset.
I created a new file for all robot state plots because there is a
maximum number of plots in one plotting function and the limit
was exceeded.
Change-Id: I489a1a786217ace7ded1a05ce6104205566ba70f
diff --git a/frc971/analysis/plot_index.ts b/frc971/analysis/plot_index.ts
index 0610f6c..780f944 100644
--- a/frc971/analysis/plot_index.ts
+++ b/frc971/analysis/plot_index.ts
@@ -24,6 +24,8 @@
import * as proxy from 'org_frc971/aos/network/www/proxy';
import {plotImu} from 'org_frc971/frc971/wpilib/imu_plotter';
import {plotDrivetrain} from 'org_frc971/frc971/control_loops/drivetrain/drivetrain_plotter';
+import {plotRobotState} from
+ 'org_frc971/frc971/control_loops/drivetrain/robot_state_plotter'
import {plotDemo} from 'org_frc971/aos/network/www/demo_plot';
import {plotData} from 'org_frc971/frc971/analysis/plot_data_utils';
@@ -81,6 +83,7 @@
['Demo', new PlotState(plotDiv, plotDemo)],
['IMU', new PlotState(plotDiv, plotImu)],
['Drivetrain', new PlotState(plotDiv, plotDrivetrain)],
+ ['Robot State', new PlotState(plotDiv, plotRobotState)],
['C++ Plotter', new PlotState(plotDiv, plotData)],
]);