Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
Brian Silverman | 6260c09 | 2018-01-14 15:21:36 -0800 | [diff] [blame^] | 3 | py_binary( |
| 4 | name = 'haptic_wheel', |
| 5 | srcs = [ |
| 6 | 'haptic_wheel.py', |
| 7 | ], |
| 8 | deps = [ |
| 9 | '//external:python-gflags', |
| 10 | '//external:python-glog', |
| 11 | '//frc971/control_loops/python:controls', |
| 12 | ], |
| 13 | restricted_to = ['//tools:k8'], |
| 14 | ) |
| 15 | |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 16 | py_library( |
| 17 | name = 'controls', |
| 18 | srcs = [ |
Philipp Schrader | 9ffe298 | 2016-12-07 20:51:08 -0800 | [diff] [blame] | 19 | 'cim.py', |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 20 | 'control_loop.py', |
| 21 | 'controls.py', |
Austin Schuh | edc317c | 2015-11-08 14:07:42 -0800 | [diff] [blame] | 22 | 'polytope.py', |
| 23 | 'libcdd.py', |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 24 | ], |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 25 | deps = [ |
Austin Schuh | c9177b5 | 2015-11-28 13:18:31 -0800 | [diff] [blame] | 26 | '//external:python-glog', |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 27 | '//external:slycot', |
| 28 | ], |
Campbell Crowley | 15e4d7e | 2015-11-21 18:12:48 -0800 | [diff] [blame] | 29 | data = [ |
| 30 | '//third_party/cddlib:_cddlib.so', |
| 31 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame] | 32 | restricted_to = ['//tools:k8'], |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 33 | ) |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 34 | |
| 35 | py_test( |
| 36 | name = 'polytope_test', |
| 37 | srcs = [ |
| 38 | 'polytope_test.py', |
| 39 | ], |
| 40 | deps = [ |
| 41 | ':controls', |
| 42 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame] | 43 | restricted_to = ['//tools:k8'], |
Brian Silverman | 9c89c0a | 2016-01-08 01:04:57 -0800 | [diff] [blame] | 44 | ) |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 45 | |
| 46 | py_binary( |
| 47 | name = 'down_estimator', |
| 48 | srcs = [ |
| 49 | 'down_estimator.py', |
| 50 | ], |
| 51 | deps = [ |
| 52 | ':controls', |
| 53 | ], |
Austin Schuh | 9d92e6b | 2017-10-17 01:19:38 -0700 | [diff] [blame] | 54 | restricted_to = ['//tools:k8'], |
Brian Silverman | 69120d7 | 2016-03-08 16:56:16 -0500 | [diff] [blame] | 55 | ) |
Campbell Crowley | 33e0e3d | 2017-12-27 17:55:40 -0800 | [diff] [blame] | 56 | |
| 57 | py_library( |
| 58 | name = 'drivetrain', |
| 59 | srcs = [ |
| 60 | 'drivetrain.py', |
| 61 | ], |
| 62 | deps = [ |
| 63 | ':controls', |
| 64 | ], |
| 65 | restricted_to = ['//tools:k8'], |
| 66 | ) |
| 67 | |
| 68 | py_library( |
| 69 | name = 'polydrivetrain', |
| 70 | srcs = [ |
| 71 | 'polydrivetrain.py', |
| 72 | ], |
| 73 | deps = [ |
| 74 | ':controls', |
| 75 | ':drivetrain', |
| 76 | '//external:python-glog', |
| 77 | ], |
| 78 | restricted_to = ['//tools:k8'], |
| 79 | ) |