Split hybrid statespace loop out into a separate file
This reduces dependencies for the state feedback loop so we can bake
it into the pistol grip controller.
Change-Id: Ic2769123ebe837aec0624e1e5a1eb0bcbac64431
diff --git a/frc971/control_loops/python/control_loop.py b/frc971/control_loops/python/control_loop.py
index 8eb67fe..50e4314 100644
--- a/frc971/control_loops/python/control_loop.py
+++ b/frc971/control_loops/python/control_loop.py
@@ -118,6 +118,10 @@
fd.write('#ifndef %s\n'
'#define %s\n\n' % (header_guard, header_guard))
fd.write('#include \"frc971/control_loops/state_feedback_loop.h\"\n')
+ if (self._plant_type == 'StateFeedbackHybridPlant' or
+ self._observer_type == 'HybridKalman'):
+ fd.write('#include \"frc971/control_loops/hybrid_state_feedback_loop.h\"\n')
+
fd.write('\n')
fd.write(self._namespace_start)