Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 2 | |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 3 | load("//aos/build:queues.bzl", "queue_library") |
| 4 | load("//tools:environments.bzl", "mcu_cpus") |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 5 | |
| 6 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 7 | name = "replay_control_loop", |
| 8 | hdrs = [ |
| 9 | "replay_control_loop.h", |
| 10 | ], |
| 11 | deps = [ |
| 12 | ":control_loop", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 13 | "//aos:queues", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 14 | "//aos/logging:queue_logging", |
| 15 | "//aos/logging:replay", |
Austin Schuh | 2001aa4 | 2018-10-29 22:57:02 -0700 | [diff] [blame^] | 16 | "//aos/time", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 17 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 18 | ) |
| 19 | |
| 20 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 21 | name = "control_loop_test", |
| 22 | testonly = True, |
| 23 | srcs = [ |
| 24 | "control_loop_test.cc", |
| 25 | ], |
| 26 | hdrs = [ |
| 27 | "control_loop_test.h", |
| 28 | ], |
| 29 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 30 | "//aos/logging:queue_logging", |
Austin Schuh | 2001aa4 | 2018-10-29 22:57:02 -0700 | [diff] [blame^] | 31 | "//aos/robot_state", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 32 | "//aos/testing:googletest", |
| 33 | "//aos/testing:test_shm", |
Austin Schuh | 2001aa4 | 2018-10-29 22:57:02 -0700 | [diff] [blame^] | 34 | "//aos/time", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 35 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 36 | ) |
| 37 | |
| 38 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 39 | name = "polytope_uc", |
| 40 | hdrs = [ |
| 41 | "polytope.h", |
| 42 | ], |
| 43 | restricted_to = mcu_cpus, |
| 44 | deps = [ |
| 45 | "//third_party/eigen", |
| 46 | ], |
| 47 | ) |
| 48 | |
| 49 | cc_library( |
| 50 | name = "polytope", |
| 51 | hdrs = [ |
| 52 | "polytope.h", |
| 53 | ], |
| 54 | deps = [ |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 55 | "//aos/logging", |
| 56 | "//aos/logging:matrix_logging", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 57 | "//third_party/cddlib", |
| 58 | "//third_party/eigen", |
| 59 | ], |
Brian Silverman | aba7bf6 | 2016-01-31 18:03:59 -0500 | [diff] [blame] | 60 | ) |
| 61 | |
| 62 | cc_test( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 63 | name = "polytope_test", |
| 64 | srcs = [ |
| 65 | "polytope_test.cc", |
| 66 | ], |
| 67 | deps = [ |
| 68 | ":polytope", |
| 69 | "//aos/testing:googletest", |
| 70 | "//aos/testing:test_logging", |
| 71 | "//third_party/eigen", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 72 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 73 | ) |
| 74 | |
| 75 | queue_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 76 | name = "control_loop_queues", |
| 77 | srcs = [ |
| 78 | "control_loops.q", |
| 79 | ], |
Brian Silverman | 7a7c24d | 2018-09-01 17:49:09 -0700 | [diff] [blame] | 80 | compatible_with = [ |
| 81 | "//tools:armhf-debian", |
| 82 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 83 | ) |
| 84 | |
| 85 | cc_library( |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 86 | name = "control_loop", |
| 87 | srcs = [ |
| 88 | "control_loop.cc", |
| 89 | "control_loop-tmpl.h", |
| 90 | ], |
| 91 | hdrs = [ |
| 92 | "control_loop.h", |
| 93 | ], |
| 94 | deps = [ |
| 95 | ":control_loop_queues", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 96 | "//aos:queues", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 97 | "//aos/logging", |
| 98 | "//aos/logging:queue_logging", |
Austin Schuh | 2001aa4 | 2018-10-29 22:57:02 -0700 | [diff] [blame^] | 99 | "//aos/robot_state", |
| 100 | "//aos/time", |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 101 | "//aos/util:log_interval", |
Austin Schuh | bcce26a | 2018-03-26 23:41:24 -0700 | [diff] [blame] | 102 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 103 | ) |