Add plot for y2022 localizer

Change-Id: I5f440de939535765d403d9d8513510e3fdf1c7d1
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/frc971/analysis/BUILD b/frc971/analysis/BUILD
index d846ce3..82f397c 100644
--- a/frc971/analysis/BUILD
+++ b/frc971/analysis/BUILD
@@ -52,6 +52,7 @@
         "//y2020/control_loops/superstructure:hood_plotter",
         "//y2020/control_loops/superstructure:turret_plotter",
         "//y2021_bot3/control_loops/superstructure:superstructure_plotter",
+        "//y2022/control_loops/localizer:localizer_plotter",
     ],
 )
 
diff --git a/frc971/analysis/plot_index.ts b/frc971/analysis/plot_index.ts
index 2df65f6..a5203b0 100644
--- a/frc971/analysis/plot_index.ts
+++ b/frc971/analysis/plot_index.ts
@@ -32,8 +32,10 @@
     'org_frc971/y2020/control_loops/superstructure/finisher_plotter'
 import {plotTurret} from
     'org_frc971/y2020/control_loops/superstructure/turret_plotter'
-import {plotLocalizer} from
+import {plotLocalizer as plot2020Localizer} from
     'org_frc971/y2020/control_loops/drivetrain/localizer_plotter'
+import {plotLocalizer as plot2022Localizer} from
+    'org_frc971/y2022/control_loops/localizer/localizer_plotter'
 import {plotAccelerator} from
     'org_frc971/y2020/control_loops/superstructure/accelerator_plotter'
 import {plotHood} from
@@ -104,7 +106,8 @@
   ['Accelerator', new PlotState(plotDiv, plotAccelerator)],
   ['Hood', new PlotState(plotDiv, plotHood)],
   ['Turret', new PlotState(plotDiv, plotTurret)],
-  ['2020 Localizer', new PlotState(plotDiv, plotLocalizer)],
+  ['2022 Localizer', new PlotState(plotDiv, plot2022Localizer)],
+  ['2020 Localizer', new PlotState(plotDiv, plot2020Localizer)],
   ['C++ Plotter', new PlotState(plotDiv, plotData)],
   ['Y2021 3rd Robot Superstructure', new PlotState(plotDiv, plotSuperstructure)],
 ]);
@@ -154,4 +157,4 @@
   plotSelect.value = getDefaultPlot();
   // Force the event to occur once at the start.
   plotSelect.dispatchEvent(new Event('input'));
-});
\ No newline at end of file
+});