milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2022:__subpackages__"]) |
| 2 | |
| 3 | py_binary( |
| 4 | name = "drivetrain", |
| 5 | srcs = [ |
| 6 | "drivetrain.py", |
| 7 | ], |
| 8 | legacy_create_init = False, |
| 9 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 10 | deps = [ |
| 11 | ":python_init", |
| 12 | "//external:python-gflags", |
| 13 | "//external:python-glog", |
| 14 | "//frc971/control_loops/python:drivetrain", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | py_binary( |
| 19 | name = "polydrivetrain", |
| 20 | srcs = [ |
| 21 | "drivetrain.py", |
| 22 | "polydrivetrain.py", |
| 23 | ], |
| 24 | legacy_create_init = False, |
| 25 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 26 | deps = [ |
| 27 | ":python_init", |
| 28 | "//external:python-gflags", |
| 29 | "//external:python-glog", |
| 30 | "//frc971/control_loops/python:polydrivetrain", |
| 31 | ], |
| 32 | ) |
| 33 | |
| 34 | py_library( |
| 35 | name = "polydrivetrain_lib", |
| 36 | srcs = [ |
| 37 | "drivetrain.py", |
| 38 | "polydrivetrain.py", |
| 39 | ], |
| 40 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 41 | visibility = ["//visibility:public"], |
| 42 | deps = [ |
| 43 | "//external:python-gflags", |
| 44 | "//external:python-glog", |
| 45 | "//frc971/control_loops/python:controls", |
| 46 | "//frc971/control_loops/python:drivetrain", |
| 47 | "//frc971/control_loops/python:polydrivetrain", |
| 48 | ], |
| 49 | ) |
| 50 | |
Austin Schuh | 8216245 | 2022-02-07 22:01:45 -0800 | [diff] [blame] | 51 | py_library( |
| 52 | name = "catapult_lib", |
| 53 | srcs = [ |
| 54 | "catapult_lib.py", |
| 55 | ], |
| 56 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 57 | deps = [ |
Austin Schuh | ac61c88 | 2022-02-23 17:22:22 -0800 | [diff] [blame^] | 58 | "//aos/util:py_trapezoid_profile", |
| 59 | "//frc971/control_loops/python:angular_system", |
Austin Schuh | 8216245 | 2022-02-07 22:01:45 -0800 | [diff] [blame] | 60 | "//frc971/control_loops/python:controls", |
| 61 | "@matplotlib_repo//:matplotlib3", |
| 62 | ], |
| 63 | ) |
| 64 | |
| 65 | py_binary( |
| 66 | name = "catapult", |
| 67 | srcs = [ |
| 68 | "catapult.py", |
| 69 | ], |
| 70 | legacy_create_init = False, |
| 71 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 72 | deps = [ |
| 73 | ":catapult_lib", |
| 74 | ":python_init", |
| 75 | "//external:python-gflags", |
| 76 | "//external:python-glog", |
Austin Schuh | 2e28d87 | 2022-02-19 18:25:57 -0800 | [diff] [blame] | 77 | "@osqp_amd64//:python_osqp", |
Austin Schuh | 8216245 | 2022-02-07 22:01:45 -0800 | [diff] [blame] | 78 | ], |
| 79 | ) |
| 80 | |
Milo Lin | 5d49af0 | 2022-02-05 12:50:32 -0800 | [diff] [blame] | 81 | py_binary( |
| 82 | name = "intake", |
| 83 | srcs = [ |
| 84 | "intake.py", |
| 85 | ], |
| 86 | legacy_create_init = False, |
| 87 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 88 | deps = [ |
| 89 | ":python_init", |
| 90 | "//external:python-gflags", |
| 91 | "//external:python-glog", |
| 92 | "//frc971/control_loops/python:angular_system", |
| 93 | "//frc971/control_loops/python:controls", |
| 94 | ], |
| 95 | ) |
| 96 | |
Austin Schuh | 219ace5 | 2022-02-07 21:54:16 -0800 | [diff] [blame] | 97 | py_binary( |
| 98 | name = "turret", |
| 99 | srcs = [ |
| 100 | "turret.py", |
| 101 | ], |
| 102 | legacy_create_init = False, |
| 103 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 104 | deps = [ |
| 105 | ":python_init", |
| 106 | "//external:python-gflags", |
| 107 | "//external:python-glog", |
| 108 | "//frc971/control_loops/python:angular_system", |
| 109 | "//frc971/control_loops/python:controls", |
| 110 | ], |
| 111 | ) |
| 112 | |
Siddhant Kanwar | 0e37f59 | 2022-02-21 19:26:50 -0800 | [diff] [blame] | 113 | py_binary( |
| 114 | name = "climber", |
| 115 | srcs = [ |
| 116 | "climber.py", |
| 117 | ], |
| 118 | legacy_create_init = False, |
| 119 | target_compatible_with = ["@platforms//cpu:x86_64"], |
| 120 | deps = [ |
| 121 | ":python_init", |
| 122 | "//external:python-gflags", |
| 123 | "//external:python-glog", |
| 124 | "//frc971/control_loops/python:controls", |
| 125 | "//frc971/control_loops/python:linear_system", |
| 126 | ], |
| 127 | ) |
| 128 | |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 129 | py_library( |
| 130 | name = "python_init", |
| 131 | srcs = ["__init__.py"], |
| 132 | target_compatible_with = ["@platforms//os:linux"], |
| 133 | visibility = ["//visibility:public"], |
Milo Lin | 5d49af0 | 2022-02-05 12:50:32 -0800 | [diff] [blame] | 134 | deps = ["//y2022/control_loops:python_init"], |
milind-u | 086d726 | 2022-01-19 20:44:18 -0800 | [diff] [blame] | 135 | ) |