Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2019:__subpackages__"]) |
| 2 | |
| 3 | py_binary( |
| 4 | name = "drivetrain", |
| 5 | srcs = [ |
| 6 | "drivetrain.py", |
| 7 | ], |
| 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"], |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 10 | deps = [ |
| 11 | ":python_init", |
Michael Schuh | ab42b0a | 2019-01-07 16:33: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", |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 15 | ], |
| 16 | ) |
| 17 | |
| 18 | py_binary( |
| 19 | name = "polydrivetrain", |
| 20 | srcs = [ |
| 21 | "drivetrain.py", |
| 22 | "polydrivetrain.py", |
| 23 | ], |
| 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"], |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 26 | deps = [ |
| 27 | ":python_init", |
Michael Schuh | ab42b0a | 2019-01-07 16:33: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", |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 31 | ], |
| 32 | ) |
| 33 | |
| 34 | py_library( |
| 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"], |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 41 | visibility = ["//visibility:public"], |
| 42 | deps = [ |
| 43 | ":python_init", |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 44 | "//frc971/control_loops/python:controls", |
| 45 | "//frc971/control_loops/python:drivetrain", |
| 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", |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 49 | ], |
| 50 | ) |
| 51 | |
| 52 | py_library( |
| 53 | name = "python_init", |
| 54 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 55 | target_compatible_with = ["@platforms//os:linux"], |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 56 | visibility = ["//visibility:public"], |
Austin Schuh | 378483c | 2019-01-20 16:36:40 -0800 | [diff] [blame] | 57 | deps = ["//y2019/control_loops:python_init"], |
Michael Schuh | ab42b0a | 2019-01-07 16:33:43 -0800 | [diff] [blame] | 58 | ) |
Austin Schuh | b0b6ccb | 2019-01-20 21:56:33 -0800 | [diff] [blame] | 59 | |
| 60 | py_binary( |
| 61 | name = "elevator", |
| 62 | srcs = [ |
| 63 | "elevator.py", |
| 64 | ], |
| 65 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 66 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | b0b6ccb | 2019-01-20 21:56:33 -0800 | [diff] [blame] | 67 | deps = [ |
| 68 | ":python_init", |
Austin Schuh | 2e55403 | 2019-01-21 15:07:27 -0800 | [diff] [blame] | 69 | "//frc971/control_loops/python:controls", |
Austin Schuh | b0b6ccb | 2019-01-20 21:56:33 -0800 | [diff] [blame] | 70 | "//frc971/control_loops/python:linear_system", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame^] | 71 | "@pip//glog", |
| 72 | "@pip//python_gflags", |
Austin Schuh | b0b6ccb | 2019-01-20 21:56:33 -0800 | [diff] [blame] | 73 | ], |
| 74 | ) |
Austin Schuh | 47a0ee1 | 2019-01-21 16:01:32 -0800 | [diff] [blame] | 75 | |
| 76 | py_binary( |
| 77 | name = "wrist", |
| 78 | srcs = [ |
| 79 | "wrist.py", |
| 80 | ], |
| 81 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 82 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 47a0ee1 | 2019-01-21 16:01:32 -0800 | [diff] [blame] | 83 | deps = [ |
| 84 | ":python_init", |
Austin Schuh | 47a0ee1 | 2019-01-21 16:01:32 -0800 | [diff] [blame] | 85 | "//frc971/control_loops/python:angular_system", |
| 86 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame^] | 87 | "@pip//glog", |
| 88 | "@pip//python_gflags", |
Austin Schuh | 47a0ee1 | 2019-01-21 16:01:32 -0800 | [diff] [blame] | 89 | ], |
| 90 | ) |
Austin Schuh | f2a9c1a | 2019-01-21 16:42:28 -0800 | [diff] [blame] | 91 | |
| 92 | py_binary( |
| 93 | name = "intake", |
| 94 | srcs = [ |
| 95 | "intake.py", |
| 96 | ], |
| 97 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 98 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | f2a9c1a | 2019-01-21 16:42:28 -0800 | [diff] [blame] | 99 | deps = [ |
| 100 | ":python_init", |
Austin Schuh | f2a9c1a | 2019-01-21 16:42:28 -0800 | [diff] [blame] | 101 | "//frc971/control_loops/python:angular_system", |
| 102 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame^] | 103 | "@pip//glog", |
| 104 | "@pip//python_gflags", |
Austin Schuh | f2a9c1a | 2019-01-21 16:42:28 -0800 | [diff] [blame] | 105 | ], |
| 106 | ) |
Austin Schuh | 9642a1d | 2019-01-21 16:54:14 -0800 | [diff] [blame] | 107 | |
| 108 | py_binary( |
Theo Bafrali | 6915f11 | 2019-02-08 22:01:54 -0800 | [diff] [blame] | 109 | name = "stilts", |
Austin Schuh | 9642a1d | 2019-01-21 16:54:14 -0800 | [diff] [blame] | 110 | srcs = [ |
Theo Bafrali | 6915f11 | 2019-02-08 22:01:54 -0800 | [diff] [blame] | 111 | "stilts.py", |
Austin Schuh | 9642a1d | 2019-01-21 16:54:14 -0800 | [diff] [blame] | 112 | ], |
| 113 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 114 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 9642a1d | 2019-01-21 16:54:14 -0800 | [diff] [blame] | 115 | deps = [ |
| 116 | ":python_init", |
Austin Schuh | 9642a1d | 2019-01-21 16:54:14 -0800 | [diff] [blame] | 117 | "//frc971/control_loops/python:controls", |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 118 | "//frc971/control_loops/python:linear_system", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame^] | 119 | "@pip//glog", |
| 120 | "@pip//python_gflags", |
Austin Schuh | 9642a1d | 2019-01-21 16:54:14 -0800 | [diff] [blame] | 121 | ], |
| 122 | ) |