Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2018:__subpackages__"]) |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 2 | |
| 3 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 4 | name = "drivetrain", |
| 5 | srcs = [ |
| 6 | "drivetrain.py", |
| 7 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 8 | legacy_create_init = False, |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 9 | restricted_to = ["//tools:k8"], |
| 10 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 11 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 12 | "//external:python-gflags", |
| 13 | "//external:python-glog", |
| 14 | "//frc971/control_loops/python:drivetrain", |
| 15 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 19 | name = "polydrivetrain", |
| 20 | srcs = [ |
| 21 | "drivetrain.py", |
| 22 | "polydrivetrain.py", |
| 23 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 24 | legacy_create_init = False, |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 25 | restricted_to = ["//tools:k8"], |
| 26 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 27 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 28 | "//external:python-gflags", |
| 29 | "//external:python-glog", |
| 30 | "//frc971/control_loops/python:polydrivetrain", |
| 31 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 32 | ) |
| 33 | |
| 34 | py_library( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 35 | name = "polydrivetrain_lib", |
| 36 | srcs = [ |
| 37 | "drivetrain.py", |
| 38 | "polydrivetrain.py", |
| 39 | ], |
| 40 | restricted_to = ["//tools:k8"], |
| 41 | deps = [ |
| 42 | "//external:python-gflags", |
| 43 | "//external:python-glog", |
| 44 | "//frc971/control_loops/python:controls", |
| 45 | "//frc971/control_loops/python:drivetrain", |
| 46 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 47 | ) |
| 48 | |
| 49 | py_test( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 50 | name = "polydrivetrain_test", |
| 51 | srcs = [ |
| 52 | "polydrivetrain_test.py", |
| 53 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 54 | legacy_create_init = False, |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 55 | restricted_to = ["//tools:k8"], |
| 56 | deps = [ |
| 57 | ":polydrivetrain_lib", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 58 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 59 | "//external:python-gflags", |
| 60 | "//external:python-glog", |
| 61 | "//frc971/control_loops/python:controls", |
| 62 | "//frc971/control_loops/python:polydrivetrain", |
| 63 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 64 | ) |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 65 | |
| 66 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 67 | name = "arm_trajectory", |
| 68 | srcs = [ |
| 69 | "arm_trajectory.py", |
| 70 | "path_points.py", |
| 71 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 72 | legacy_create_init = False, |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 73 | restricted_to = ["//tools:k8"], |
| 74 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 75 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 76 | "//external:python-gflags", |
| 77 | "//external:python-glog", |
| 78 | "//frc971/control_loops/python:controls", |
| 79 | ], |
| 80 | ) |
| 81 | |
| 82 | py_binary( |
| 83 | name = "intake", |
| 84 | srcs = [ |
| 85 | "intake.py", |
| 86 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 87 | legacy_create_init = False, |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 88 | restricted_to = ["//tools:k8"], |
| 89 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 90 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 91 | "//external:python-gflags", |
| 92 | "//external:python-glog", |
| 93 | "//frc971/control_loops/python:controls", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 94 | "@matplotlib", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 95 | ], |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 96 | ) |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 97 | |
| 98 | cc_binary( |
| 99 | name = "arm_mpc", |
| 100 | srcs = [ |
| 101 | "arm_mpc.cc", |
| 102 | ], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 103 | restricted_to = ["//tools:k8"], |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 104 | deps = [ |
| 105 | "//third_party/ct", |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 106 | "//third_party/gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 107 | "//third_party/matplotlib-cpp", |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 108 | ], |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 109 | ) |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 110 | |
| 111 | py_binary( |
| 112 | name = "graph_edit", |
| 113 | srcs = [ |
| 114 | "basic_window.py", |
| 115 | "graph_edit.py", |
| 116 | "graph_generate.py", |
| 117 | ], |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 118 | default_python_version = "PY3", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 119 | legacy_create_init = False, |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 120 | srcs_version = "PY3", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 121 | deps = [ |
| 122 | ":python_init", |
| 123 | ], |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 124 | ) |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 125 | |
| 126 | py_binary( |
| 127 | name = "graph_codegen", |
| 128 | srcs = [ |
| 129 | "graph_codegen.py", |
| 130 | "graph_generate.py", |
| 131 | ], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 132 | default_python_version = "PY2", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 133 | legacy_create_init = False, |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 134 | srcs_version = "PY2", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 135 | deps = [ |
| 136 | ":python_init", |
| 137 | ], |
| 138 | ) |
| 139 | |
| 140 | py_library( |
| 141 | name = "python_init", |
| 142 | srcs = ["__init__.py"], |
| 143 | visibility = ["//visibility:public"], |
| 144 | deps = ["//y2018/control_loops:python_init"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 145 | ) |