Indexer shoots and passes the tests. Doing the last little bit of cleanup.
diff --git a/frc971/control_loops/python/index.py b/frc971/control_loops/python/index.py
index 5ce7613..c65397b 100755
--- a/frc971/control_loops/python/index.py
+++ b/frc971/control_loops/python/index.py
@@ -43,7 +43,7 @@
self.ContinuousToDiscrete(self.A_continuous, self.B_continuous,
self.dt, self.C)
- self.PlaceControllerPoles([.75, .6])
+ self.PlaceControllerPoles([.5, .55])
self.rpl = .05
self.ipl = 0.008
@@ -82,10 +82,13 @@
# Write the generated constants out to a file.
if len(argv) != 3:
- print "Expected .cc file name and .h file name"
+ print "Expected .h file name and .c file name"
else:
- index.DumpHeaderFile(argv[1])
- index.DumpCppFile(argv[2], argv[1])
+ if argv[1][-3:] == '.cc':
+ print '.cc file is second'
+ else:
+ index.DumpHeaderFile(argv[1])
+ index.DumpCppFile(argv[2], argv[1])
if __name__ == '__main__':
sys.exit(main(sys.argv))