blob: bada49029bcd66a7f672c78ae8e0b2ca2a7e5dba [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001{
2 'variables': {
3 'loop_files': [
4 'DriveTrain.q',
Austin Schuhdc1c84a2013-02-23 16:33:10 -08005 'wrist_motor.q',
brians343bc112013-02-10 01:53:46 +00006 ]
7 },
8 'targets': [
9 {
Brian Silverman5275ade2013-03-03 12:58:25 -080010 'target_name': 'state_feedback_loop',
11 'type': 'static_library',
12 'sources': [
13 #'state_feedback_loop.h'
Austin Schuhf1881812013-03-03 13:08:33 -080014 #'StateFeedbackLoop.h'
Brian Silverman5275ade2013-03-03 12:58:25 -080015 ],
16 'dependencies': [
17 '<(EXTERNALS):eigen',
18 ],
19 'export_dependent_settings': [
20 '<(EXTERNALS):eigen',
21 ],
22 },
23 {
brians343bc112013-02-10 01:53:46 +000024 'target_name': 'control_loops',
25 'type': 'static_library',
26 'sources': ['<@(loop_files)'],
27 'variables': {
28 'header_path': 'frc971/control_loops',
29 },
30 'dependencies': [
brians343bc112013-02-10 01:53:46 +000031 '<(AOS)/common/common.gyp:control_loop_queues',
32 '<(AOS)/common/common.gyp:queues',
33 ],
34 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +000035 '<(AOS)/common/common.gyp:control_loop_queues',
36 '<(AOS)/common/common.gyp:queues',
37 ],
38 'includes': ['../../aos/build/queues.gypi'],
39 },
40 {
Austin Schuhdc1c84a2013-02-23 16:33:10 -080041 'target_name': 'wrist_lib',
42 'type': 'static_library',
43 'sources': [
44 'wrist.cc',
45 'wrist_motor_plant.cc',
46 ],
47 'dependencies': [
48 '<(AOS)/build/aos.gyp:libaos',
49 'control_loops',
50 '<(AOS)/common/common.gyp:controls',
51 '<(DEPTH)/frc971/frc971.gyp:common',
Austin Schuhf1881812013-03-03 13:08:33 -080052 'state_feedback_loop',
Austin Schuhdc1c84a2013-02-23 16:33:10 -080053 ],
Austin Schuh464ee1a2013-03-01 22:37:39 -080054 'export_dependent_settings': [
Austin Schuhf1881812013-03-03 13:08:33 -080055 'state_feedback_loop',
Austin Schuh464ee1a2013-03-01 22:37:39 -080056 '<(AOS)/common/common.gyp:controls',
57 'control_loops',
58 ],
Austin Schuhdc1c84a2013-02-23 16:33:10 -080059 },
60 {
61 'target_name': 'wrist_lib_test',
62 'type': 'executable',
63 'sources': [
64 'wrist_lib_test.cc',
65 ],
66 'dependencies': [
67 '<(EXTERNALS):gtest',
68 '<(AOS)/build/aos.gyp:libaos',
69 'control_loops',
70 'wrist_lib',
71 '<(AOS)/common/common.gyp:queue_testutils',
Austin Schuhf1881812013-03-03 13:08:33 -080072 'state_feedback_loop',
Austin Schuhdc1c84a2013-02-23 16:33:10 -080073 ],
74 },
75 {
76 'target_name': 'wrist',
77 'type': 'executable',
78 'sources': [
79 'wrist_main.cc',
80 ],
81 'dependencies': [
82 '<(AOS)/build/aos.gyp:libaos',
83 'wrist_lib',
84 'control_loops',
85 ],
86 },
87 {
brians343bc112013-02-10 01:53:46 +000088 'target_name': 'DriveTrain',
89 'type': 'executable',
90 'sources': [
91 'DriveTrain.cc',
92 ],
93 'dependencies': [
94 '<(AOS)/build/aos.gyp:logging',
95 '<(AOS)/common/common.gyp:controls',
brians343bc112013-02-10 01:53:46 +000096 'control_loops',
97 '<(DEPTH)/frc971/queues/queues.gyp:queues',
Brian Silvermanf665d692013-02-17 22:11:39 -080098 '<(AOS)/atom_code/atom_code.gyp:init',
Austin Schuhf1881812013-03-03 13:08:33 -080099 'state_feedback_loop',
brians343bc112013-02-10 01:53:46 +0000100 ],
101 },
102 ],
103}