Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 2 | |
Philipp Schrader | 29d54f2 | 2016-04-02 22:14:48 +0000 | [diff] [blame] | 3 | cc_library( |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 4 | name = "averager", |
| 5 | hdrs = [ |
| 6 | "averager.h", |
| 7 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 8 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | d3f9eb2 | 2020-01-12 15:02:07 -0800 | [diff] [blame] | 9 | deps = [ |
| 10 | "@com_github_google_glog//:glog", |
| 11 | "@org_tuxfamily_eigen//:eigen", |
| 12 | ], |
Philipp Schrader | 29d54f2 | 2016-04-02 22:14:48 +0000 | [diff] [blame] | 13 | ) |
| 14 | |
| 15 | cc_test( |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 16 | name = "averager_test", |
| 17 | srcs = [ |
| 18 | "averager_test.cc", |
| 19 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 20 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 21 | deps = [ |
| 22 | ":averager", |
| 23 | "//aos/testing:googletest", |
James Kuszmaul | d3f9eb2 | 2020-01-12 15:02:07 -0800 | [diff] [blame] | 24 | "@org_tuxfamily_eigen//:eigen", |
| 25 | ], |
| 26 | ) |
| 27 | |
| 28 | cc_library( |
| 29 | name = "imu_zeroer", |
| 30 | srcs = [ |
| 31 | "imu_zeroer.cc", |
| 32 | ], |
| 33 | hdrs = [ |
| 34 | "imu_zeroer.h", |
| 35 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 36 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | d3f9eb2 | 2020-01-12 15:02:07 -0800 | [diff] [blame] | 37 | deps = [ |
| 38 | ":averager", |
James Kuszmaul | b1e2937 | 2020-02-11 16:55:36 -0800 | [diff] [blame] | 39 | "//frc971/control_loops:control_loops_fbs", |
| 40 | "//frc971/control_loops/drivetrain:drivetrain_status_fbs", |
James Kuszmaul | d3f9eb2 | 2020-01-12 15:02:07 -0800 | [diff] [blame] | 41 | "//frc971/wpilib:imu_fbs", |
| 42 | "@com_github_google_glog//:glog", |
| 43 | "@org_tuxfamily_eigen//:eigen", |
| 44 | ], |
| 45 | ) |
| 46 | |
| 47 | cc_test( |
| 48 | name = "imu_zeroer_test", |
| 49 | srcs = [ |
| 50 | "imu_zeroer_test.cc", |
| 51 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 52 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | d3f9eb2 | 2020-01-12 15:02:07 -0800 | [diff] [blame] | 53 | deps = [ |
| 54 | ":imu_zeroer", |
| 55 | "//aos:flatbuffers", |
| 56 | "//aos/testing:googletest", |
| 57 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 58 | ], |
Philipp Schrader | 29d54f2 | 2016-04-02 22:14:48 +0000 | [diff] [blame] | 59 | ) |
| 60 | |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 61 | cc_library( |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 62 | name = "zeroing", |
| 63 | srcs = [ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 64 | "absolute_and_absolute_encoder.cc", |
Brian Silverman | a57b701 | 2020-03-11 20:19:23 -0700 | [diff] [blame] | 65 | "absolute_encoder.cc", |
| 66 | "hall_effect_and_position.cc", |
| 67 | "pot_and_absolute_encoder.cc", |
| 68 | "pot_and_index.cc", |
| 69 | "pulse_index.cc", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 70 | ], |
| 71 | hdrs = [ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 72 | "absolute_and_absolute_encoder.h", |
Brian Silverman | a57b701 | 2020-03-11 20:19:23 -0700 | [diff] [blame] | 73 | "absolute_encoder.h", |
| 74 | "hall_effect_and_position.h", |
| 75 | "pot_and_absolute_encoder.h", |
| 76 | "pot_and_index.h", |
| 77 | "pulse_index.h", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 78 | "zeroing.h", |
| 79 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 80 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 81 | deps = [ |
| 82 | ":wrap", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 83 | "//aos/logging", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 84 | "//frc971:constants", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 85 | "//frc971/control_loops:control_loops_fbs", |
| 86 | "@com_github_google_glog//:glog", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 87 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 88 | ) |
| 89 | |
| 90 | cc_test( |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 91 | name = "zeroing_test", |
| 92 | srcs = [ |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 93 | "absolute_and_absolute_encoder_test.cc", |
Brian Silverman | a57b701 | 2020-03-11 20:19:23 -0700 | [diff] [blame] | 94 | "absolute_encoder_test.cc", |
| 95 | "hall_effect_and_position_test.cc", |
| 96 | "pot_and_absolute_encoder_test.cc", |
| 97 | "pot_and_index_test.cc", |
| 98 | "pulse_index_test.cc", |
| 99 | "relative_encoder_test.cc", |
| 100 | "zeroing_test.h", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 101 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 102 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 103 | deps = [ |
| 104 | ":zeroing", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 105 | "//aos/testing:googletest", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 106 | "//frc971/control_loops:control_loops_fbs", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 107 | "//frc971/control_loops:position_sensor_sim", |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 108 | ], |
Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 109 | ) |
Austin Schuh | c6423e6 | 2017-02-11 16:56:30 -0800 | [diff] [blame] | 110 | |
| 111 | cc_library( |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 112 | name = "wrap", |
| 113 | srcs = [ |
| 114 | "wrap.cc", |
| 115 | ], |
| 116 | hdrs = [ |
| 117 | "wrap.h", |
| 118 | ], |
Austin Schuh | c6423e6 | 2017-02-11 16:56:30 -0800 | [diff] [blame] | 119 | ) |
| 120 | |
| 121 | cc_test( |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 122 | name = "wrap_test", |
| 123 | srcs = [ |
| 124 | "wrap_test.cc", |
| 125 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 126 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 4fae0fc | 2018-03-27 23:51:42 -0700 | [diff] [blame] | 127 | deps = [ |
| 128 | ":wrap", |
| 129 | "//aos/testing:googletest", |
| 130 | ], |
Austin Schuh | c6423e6 | 2017-02-11 16:56:30 -0800 | [diff] [blame] | 131 | ) |
Stephan Massalt | 4d1e74f | 2020-01-11 17:50:39 -0800 | [diff] [blame] | 132 | |
| 133 | cc_test( |
| 134 | name = "unwrap_test", |
| 135 | srcs = [ |
| 136 | "unwrap_test.cc", |
| 137 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 138 | target_compatible_with = ["@platforms//os:linux"], |
Stephan Massalt | 4d1e74f | 2020-01-11 17:50:39 -0800 | [diff] [blame] | 139 | deps = [ |
| 140 | ":wrap", |
| 141 | "//aos/testing:googletest", |
| 142 | ], |
| 143 | ) |