commit | 5ea4847bca8761315dd52f71edca8e047996bd09 | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Tue Feb 02 20:46:41 2021 -0800 |
committer | Austin Schuh <austin.linux@gmail.com> | Tue Feb 02 20:48:05 2021 -0800 |
tree | fce59761885d417156bc6be90c5ef02b2d99d910 | |
parent | 56ccbc006c6c33c954df6c27eb280e0377d9e308 [diff] [blame] |
Fix some python2-isms in prep for python3 These ones should work in both versions so we don't have to do them as part of a global change over. Change-Id: I2177b329d385c50d706a50a750b6c115ea3ea7ae
diff --git a/frc971/control_loops/python/angular_system.py b/frc971/control_loops/python/angular_system.py index bd4447b..397e6ee 100755 --- a/frc971/control_loops/python/angular_system.py +++ b/frc971/control_loops/python/angular_system.py
@@ -216,7 +216,7 @@ U_last = numpy.matrix(numpy.zeros((1, 1))) iterations = int(duration / plant.dt) - for i in xrange(iterations): + for i in range(iterations): t = i * plant.dt observer.Y = plant.Y observer.CorrectObserver(U_last)