Run yapf on all python files in the repo
Signed-off-by: Ravago Jones <ravagojones@gmail.com>
Change-Id: I221e04c3f517fab8535b22551553799e0fee7a80
diff --git a/y2020/control_loops/python/turret.py b/y2020/control_loops/python/turret.py
index 6f15057..5f77f84 100644
--- a/y2020/control_loops/python/turret.py
+++ b/y2020/control_loops/python/turret.py
@@ -18,17 +18,18 @@
except gflags.DuplicateFlagError:
pass
-kTurret = angular_system.AngularSystemParams(
- name='Turret',
- motor=control_loop.MiniCIM(),
- G=(26.0 / 150.0) * (14.0 / 60.0) * (20.0 / 60.0),
- J=0.20,
- q_pos=0.30,
- q_vel=4.5,
- kalman_q_pos=0.12,
- kalman_q_vel=10.0,
- kalman_q_voltage=20.0,
- kalman_r_position=0.05)
+kTurret = angular_system.AngularSystemParams(name='Turret',
+ motor=control_loop.MiniCIM(),
+ G=(26.0 / 150.0) * (14.0 / 60.0) *
+ (20.0 / 60.0),
+ J=0.20,
+ q_pos=0.30,
+ q_vel=4.5,
+ kalman_q_pos=0.12,
+ kalman_q_vel=10.0,
+ kalman_q_voltage=20.0,
+ kalman_r_position=0.05)
+
def main(argv):
if FLAGS.plot:
@@ -38,13 +39,11 @@
# Write the generated constants out to a file.
if len(argv) != 5:
- glog.fatal(
- 'Expected .h file name and .cc file name for the turret.'
- )
+ glog.fatal('Expected .h file name and .cc file name for the turret.')
else:
namespaces = ['y2020', 'control_loops', 'superstructure', 'turret']
- angular_system.WriteAngularSystem([kTurret],
- argv[1:3], argv[3:5], namespaces)
+ angular_system.WriteAngularSystem([kTurret], argv[1:3], argv[3:5],
+ namespaces)
if __name__ == '__main__':