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, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 9 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 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 | "//frc971/control_loops/python:drivetrain", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 13 | "@pip//glog", |
| 14 | "@pip//python_gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 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, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 25 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 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 | "//frc971/control_loops/python:polydrivetrain", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 29 | "@pip//glog", |
| 30 | "@pip//python_gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 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 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 40 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 44aa914 | 2018-12-03 21:07:23 +1100 | [diff] [blame] | 41 | visibility = ["//visibility:public"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 42 | deps = [ |
Austin Schuh | 44aa914 | 2018-12-03 21:07:23 +1100 | [diff] [blame] | 43 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 44 | "//frc971/control_loops/python:controls", |
| 45 | "//frc971/control_loops/python:drivetrain", |
Austin Schuh | 44aa914 | 2018-12-03 21:07:23 +1100 | [diff] [blame] | 46 | "//frc971/control_loops/python:polydrivetrain", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 47 | "@pip//glog", |
| 48 | "@pip//python_gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 49 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 50 | ) |
| 51 | |
| 52 | py_test( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 53 | name = "polydrivetrain_test", |
| 54 | srcs = [ |
| 55 | "polydrivetrain_test.py", |
| 56 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 57 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 58 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 59 | deps = [ |
| 60 | ":polydrivetrain_lib", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 61 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 62 | "//frc971/control_loops/python:controls", |
| 63 | "//frc971/control_loops/python:polydrivetrain", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 64 | "@pip//glog", |
| 65 | "@pip//python_gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 66 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 67 | ) |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 68 | |
| 69 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 70 | name = "arm_trajectory", |
| 71 | srcs = [ |
| 72 | "arm_trajectory.py", |
| 73 | "path_points.py", |
| 74 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 75 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 76 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 77 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 78 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 79 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 80 | "@pip//glog", |
| 81 | "@pip//python_gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 82 | ], |
| 83 | ) |
| 84 | |
| 85 | py_binary( |
| 86 | name = "intake", |
| 87 | srcs = [ |
| 88 | "intake.py", |
| 89 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 90 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 91 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 92 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 93 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 94 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 95 | "@pip//glog", |
| 96 | "@pip//matplotlib", |
Austin Schuh | 6647cb2 | 2023-02-21 12:35:25 -0800 | [diff] [blame] | 97 | "@pip//pygobject", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 98 | "@pip//python_gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 99 | ], |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 100 | ) |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 101 | |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 102 | cc_binary( |
| 103 | name = "2d_plot", |
| 104 | srcs = [ |
| 105 | "2d_plot.cc", |
| 106 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 107 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 108 | deps = [ |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 109 | "//third_party/matplotlib-cpp", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame^] | 110 | "@com_google_absl//absl/flags:flag", |
| 111 | "@com_google_absl//absl/flags:parse", |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 112 | ], |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 113 | ) |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 114 | |
| 115 | py_binary( |
| 116 | name = "graph_edit", |
| 117 | srcs = [ |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 118 | "graph_edit.py", |
| 119 | "graph_generate.py", |
| 120 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 121 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 122 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 123 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 124 | ":python_init", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 125 | "//frc971/control_loops/python:basic_window", |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 126 | "//frc971/control_loops/python:color", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 127 | "@pip//numpy", |
| 128 | "@pip//pygobject", |
| 129 | "@pip//shapely", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 130 | ], |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 131 | ) |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 132 | |
| 133 | py_binary( |
| 134 | name = "graph_codegen", |
| 135 | srcs = [ |
| 136 | "graph_codegen.py", |
| 137 | "graph_generate.py", |
| 138 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 139 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 140 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 141 | deps = [ |
| 142 | ":python_init", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 143 | "@pip//numpy", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 144 | ], |
| 145 | ) |
| 146 | |
| 147 | py_library( |
| 148 | name = "python_init", |
| 149 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 150 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 151 | visibility = ["//visibility:public"], |
| 152 | deps = ["//y2018/control_loops:python_init"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 153 | ) |
Austin Schuh | 434c837 | 2018-01-21 16:30:06 -0800 | [diff] [blame] | 154 | |
| 155 | py_binary( |
| 156 | name = "extended_lqr", |
| 157 | srcs = [ |
| 158 | "extended_lqr.py", |
| 159 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 160 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 434c837 | 2018-01-21 16:30:06 -0800 | [diff] [blame] | 161 | deps = [ |
Austin Schuh | 434c837 | 2018-01-21 16:30:06 -0800 | [diff] [blame] | 162 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 163 | "@pip//glog", |
| 164 | "@pip//python_gflags", |
Austin Schuh | 434c837 | 2018-01-21 16:30:06 -0800 | [diff] [blame] | 165 | ], |
| 166 | ) |