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 | ], |
| 8 | restricted_to = ["//tools:k8"], |
| 9 | deps = [ |
| 10 | "//external:python-gflags", |
| 11 | "//external:python-glog", |
| 12 | "//frc971/control_loops/python:drivetrain", |
| 13 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 14 | ) |
| 15 | |
| 16 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 17 | name = "polydrivetrain", |
| 18 | srcs = [ |
| 19 | "drivetrain.py", |
| 20 | "polydrivetrain.py", |
| 21 | ], |
| 22 | restricted_to = ["//tools:k8"], |
| 23 | deps = [ |
| 24 | "//external:python-gflags", |
| 25 | "//external:python-glog", |
| 26 | "//frc971/control_loops/python:polydrivetrain", |
| 27 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 28 | ) |
| 29 | |
| 30 | py_library( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 31 | name = "polydrivetrain_lib", |
| 32 | srcs = [ |
| 33 | "drivetrain.py", |
| 34 | "polydrivetrain.py", |
| 35 | ], |
| 36 | restricted_to = ["//tools:k8"], |
| 37 | deps = [ |
| 38 | "//external:python-gflags", |
| 39 | "//external:python-glog", |
| 40 | "//frc971/control_loops/python:controls", |
| 41 | "//frc971/control_loops/python:drivetrain", |
| 42 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 43 | ) |
| 44 | |
| 45 | py_test( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 46 | name = "polydrivetrain_test", |
| 47 | srcs = [ |
| 48 | "polydrivetrain_test.py", |
| 49 | ], |
| 50 | restricted_to = ["//tools:k8"], |
| 51 | deps = [ |
| 52 | ":polydrivetrain_lib", |
| 53 | "//external:python-gflags", |
| 54 | "//external:python-glog", |
| 55 | "//frc971/control_loops/python:controls", |
| 56 | "//frc971/control_loops/python:polydrivetrain", |
| 57 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 58 | ) |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 59 | |
| 60 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 61 | name = "arm_trajectory", |
| 62 | srcs = [ |
| 63 | "arm_trajectory.py", |
| 64 | "path_points.py", |
| 65 | ], |
| 66 | restricted_to = ["//tools:k8"], |
| 67 | deps = [ |
| 68 | "//external:python-gflags", |
| 69 | "//external:python-glog", |
| 70 | "//frc971/control_loops/python:controls", |
| 71 | ], |
| 72 | ) |
| 73 | |
| 74 | py_binary( |
| 75 | name = "intake", |
| 76 | srcs = [ |
| 77 | "intake.py", |
| 78 | ], |
| 79 | restricted_to = ["//tools:k8"], |
| 80 | deps = [ |
| 81 | "//external:python-gflags", |
| 82 | "//external:python-glog", |
| 83 | "//frc971/control_loops/python:controls", |
| 84 | ], |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 85 | ) |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 86 | |
| 87 | cc_binary( |
| 88 | name = "arm_mpc", |
| 89 | srcs = [ |
| 90 | "arm_mpc.cc", |
| 91 | ], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 92 | restricted_to = ["//tools:k8"], |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 93 | deps = [ |
| 94 | "//third_party/ct", |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 95 | "//third_party/gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 96 | "//third_party/matplotlib-cpp", |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 97 | ], |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 98 | ) |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 99 | |
| 100 | py_binary( |
| 101 | name = "graph_edit", |
| 102 | srcs = [ |
| 103 | "basic_window.py", |
| 104 | "graph_edit.py", |
| 105 | "graph_generate.py", |
| 106 | ], |
| 107 | # Sigh, these aren't respected. |
| 108 | default_python_version = "PY3", |
| 109 | srcs_version = "PY3", |
| 110 | ) |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 111 | |
| 112 | py_binary( |
| 113 | name = "graph_codegen", |
| 114 | srcs = [ |
| 115 | "graph_codegen.py", |
| 116 | "graph_generate.py", |
| 117 | ], |
| 118 | # Sigh, these aren't respected. |
| 119 | default_python_version = "PY2", |
| 120 | srcs_version = "PY2", |
| 121 | ) |