forked from UBC-Thunderbots/Software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
65 lines (61 loc) · 1.55 KB
/
Copy pathBUILD
File metadata and controls
65 lines (61 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package(default_visibility = ["//visibility:public"])
cc_library(
name = "motor",
srcs = ["motor.cpp"],
hdrs = ["motor.h"],
deps = [
"//proto:tbots_cc_proto",
"//shared:robot_constants",
"//software/embedded:gpio",
"//software/embedded/constants",
"//software/logger",
"//software/physics:euclidean_to_wheel",
"//software/util/scoped_timespec_timer",
"@eigen",
"@trinamic",
],
)
cc_library(
name = "power",
srcs = ["power.cpp"],
hdrs = ["power.h"],
linkopts = ["-latomic"], # Necessary due to <atomic> not containing load/store for all sizes
deps = [
"//shared/uart_framing",
"//software/logger",
"//software/uart:boost_uart_communication",
"@boost//:asio",
"@boost//:filesystem",
],
)
cc_library(
name = "imu",
srcs = ["imu.cpp"],
hdrs = ["imu.h"],
deps = [
"//proto:tbots_cc_proto",
"//shared:constants",
"//software/geom:angular_acceleration",
"//software/geom:angular_velocity",
"//software/logger",
"@eigen",
],
)
cc_binary(
name = "robot_auto_test",
srcs = ["robot_auto_test.cpp"],
linkopts = [
"-lpthread",
"-lrt",
],
deps = [
":motor",
":power",
"//proto/message_translation:tbots_geometry",
"//proto/primitive:primitive_msg_factory",
"//shared:robot_constants",
"//software/embedded:primitive_executor",
"//software/logger",
"@trinamic",
],
)