Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//y2014:__subpackages__"]) |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 2 | |
| 3 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 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//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 10 | deps = [ |
| 11 | ":python_init", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [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", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 15 | ], |
Austin Schuh | edc317c | 2015-11-08 14:07:42 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
Austin Schuh | 0e99773 | 2015-11-08 15:14:53 -0800 | [diff] [blame] | 18 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 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//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 26 | deps = [ |
| 27 | ":python_init", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [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", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 31 | ], |
Austin Schuh | edc317c | 2015-11-08 14:07:42 -0800 | [diff] [blame] | 32 | ) |
| 33 | |
Austin Schuh | 0e99773 | 2015-11-08 15:14:53 -0800 | [diff] [blame] | 34 | py_library( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [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//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 41 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 42 | "//frc971/control_loops/python:controls", |
| 43 | "//frc971/control_loops/python:drivetrain", |
| 44 | "//frc971/control_loops/python:polydrivetrain", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 45 | "@pip//glog", |
| 46 | "@pip//python_gflags", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 47 | ], |
Austin Schuh | 0e99773 | 2015-11-08 15:14:53 -0800 | [diff] [blame] | 48 | ) |
| 49 | |
Austin Schuh | edc317c | 2015-11-08 14:07:42 -0800 | [diff] [blame] | 50 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 51 | name = "claw", |
| 52 | srcs = [ |
| 53 | "claw.py", |
| 54 | ], |
| 55 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 56 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 57 | deps = [ |
| 58 | ":polydrivetrain_lib", |
| 59 | ":python_init", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 60 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 61 | "@pip//glog", |
| 62 | "@pip//matplotlib", |
| 63 | "@pip//python_gflags", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 64 | ], |
Austin Schuh | 572ff40 | 2015-11-08 12:17:50 -0800 | [diff] [blame] | 65 | ) |
Austin Schuh | 9d4aca8 | 2015-11-08 14:41:31 -0800 | [diff] [blame] | 66 | |
| 67 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 68 | name = "shooter", |
| 69 | srcs = [ |
| 70 | "shooter.py", |
| 71 | ], |
| 72 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 73 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 74 | deps = [ |
| 75 | ":python_init", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 76 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 77 | "@pip//glog", |
| 78 | "@pip//matplotlib", |
| 79 | "@pip//python_gflags", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 80 | ], |
Austin Schuh | 9d4aca8 | 2015-11-08 14:41:31 -0800 | [diff] [blame] | 81 | ) |
Austin Schuh | 0038f8e | 2016-07-20 19:57:01 -0700 | [diff] [blame] | 82 | |
| 83 | py_binary( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 84 | name = "extended_lqr", |
| 85 | srcs = [ |
| 86 | "extended_lqr.py", |
| 87 | ], |
| 88 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 89 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 90 | deps = [ |
| 91 | ":python_init", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 92 | "//frc971/control_loops/python:controls", |
Philipp Schrader | ebb658f | 2022-09-17 17:31:09 -0700 | [diff] [blame] | 93 | "@pip//glog", |
| 94 | "@pip//matplotlib", |
| 95 | "@pip//python_gflags", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 96 | ], |
| 97 | ) |
| 98 | |
| 99 | py_library( |
| 100 | name = "python_init", |
| 101 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 102 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 103 | visibility = ["//visibility:public"], |
| 104 | deps = ["//y2014/control_loops:python_init"], |
Austin Schuh | 0038f8e | 2016-07-20 19:57:01 -0700 | [diff] [blame] | 105 | ) |