Converted state feedback controller and plant over to being gain scheduled, and used them in the indexer. Also wrote the python to make it easy to design gain scheduled controllers.
diff --git a/frc971/control_loops/python/wrist.py b/frc971/control_loops/python/wrist.py
index 6fc9c27..20f9c40 100755
--- a/frc971/control_loops/python/wrist.py
+++ b/frc971/control_loops/python/wrist.py
@@ -85,11 +85,11 @@
if len(argv) != 3:
print "Expected .h file name and .cc file name"
else:
+ loop_writer = control_loop.ControlLoopWriter("Wrist", [wrist])
if argv[1][-3:] == '.cc':
- print '.cc file is second'
+ loop_writer.Write(argv[2], argv[1])
else:
- wrist.DumpHeaderFile(argv[1])
- wrist.DumpCppFile(argv[2], argv[1])
+ loop_writer.Write(argv[1], argv[2])
if __name__ == '__main__':
sys.exit(main(sys.argv))