blob: d176f63e07677c05ad564d4ea2f4a523c3203def [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001{
2 'variables': {
3 'loop_files': [
4 'DriveTrain.q',
5 ]
6 },
7 'targets': [
8 {
Brian Silverman5275ade2013-03-03 12:58:25 -08009 'target_name': 'state_feedback_loop',
10 'type': 'static_library',
11 'sources': [
12 #'state_feedback_loop.h'
Austin Schuhf1881812013-03-03 13:08:33 -080013 #'StateFeedbackLoop.h'
Brian Silverman5275ade2013-03-03 12:58:25 -080014 ],
15 'dependencies': [
16 '<(EXTERNALS):eigen',
17 ],
18 'export_dependent_settings': [
19 '<(EXTERNALS):eigen',
20 ],
21 },
22 {
brians343bc112013-02-10 01:53:46 +000023 'target_name': 'control_loops',
24 'type': 'static_library',
25 'sources': ['<@(loop_files)'],
26 'variables': {
27 'header_path': 'frc971/control_loops',
28 },
29 'dependencies': [
brians343bc112013-02-10 01:53:46 +000030 '<(AOS)/common/common.gyp:control_loop_queues',
31 '<(AOS)/common/common.gyp:queues',
32 ],
33 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +000034 '<(AOS)/common/common.gyp:control_loop_queues',
35 '<(AOS)/common/common.gyp:queues',
36 ],
37 'includes': ['../../aos/build/queues.gypi'],
38 },
39 {
James Kuszmaulb5e497c2013-03-02 15:14:13 -080040 'target_name': 'hall_effect_lib_test',
41 'type': 'executable',
42 'sources': [
43 'hall_effect_lib_test.cc',
44 ],
45 'dependencies': [
46 '<(EXTERNALS):gtest',
47 '<(AOS)/build/aos.gyp:libaos',
48 '<(AOS)/common/common.gyp:queue_testutils',
49 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
50 ],
51 },
52 {
James Kuszmaul2c72df82013-03-03 14:29:48 -080053 'target_name': 'wrist_lib',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080054 'type': 'static_library',
55 'sources': [
James Kuszmaul2c72df82013-03-03 14:29:48 -080056 'wrist.cc',
57 'wrist_motor_plant.cc',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080058 ],
59 'dependencies': [
60 '<(AOS)/build/aos.gyp:libaos',
61 'control_loops',
62 '<(AOS)/common/common.gyp:controls',
63 '<(DEPTH)/frc971/frc971.gyp:common',
64 'state_feedback_loop',
65 ],
66 'export_dependent_settings': [
67 'state_feedback_loop',
68 '<(AOS)/common/common.gyp:controls',
69 'control_loops',
70 ],
71 },
72 {
James Kuszmaul2c72df82013-03-03 14:29:48 -080073 'target_name': 'wrist_lib_test',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080074 'type': 'executable',
75 'sources': [
James Kuszmaul2c72df82013-03-03 14:29:48 -080076 'wrist_lib_test.cc',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080077 ],
78 'dependencies': [
79 '<(EXTERNALS):gtest',
80 '<(AOS)/build/aos.gyp:libaos',
81 'control_loops',
James Kuszmaul2c72df82013-03-03 14:29:48 -080082 'wrist_lib',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080083 '<(AOS)/common/common.gyp:queue_testutils',
James Kuszmaul2c72df82013-03-03 14:29:48 -080084 'state_feedback_loop',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080085 ],
86 },
87 {
James Kuszmaul2c72df82013-03-03 14:29:48 -080088 'target_name': 'wrist',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080089 'type': 'executable',
90 'sources': [
James Kuszmaul2c72df82013-03-03 14:29:48 -080091 'wrist_main.cc',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080092 ],
93 'dependencies': [
94 '<(AOS)/build/aos.gyp:libaos',
James Kuszmaul2c72df82013-03-03 14:29:48 -080095 'wrist_lib',
James Kuszmaul4a4622b2013-03-02 16:28:29 -080096 'control_loops',
97 ],
98 },
99 {
brians343bc112013-02-10 01:53:46 +0000100 'target_name': 'DriveTrain',
101 'type': 'executable',
102 'sources': [
103 'DriveTrain.cc',
104 ],
105 'dependencies': [
106 '<(AOS)/build/aos.gyp:logging',
107 '<(AOS)/common/common.gyp:controls',
brians343bc112013-02-10 01:53:46 +0000108 'control_loops',
109 '<(DEPTH)/frc971/queues/queues.gyp:queues',
Brian Silvermanf665d692013-02-17 22:11:39 -0800110 '<(AOS)/atom_code/atom_code.gyp:init',
Austin Schuhf1881812013-03-03 13:08:33 -0800111 'state_feedback_loop',
brians343bc112013-02-10 01:53:46 +0000112 ],
113 },
114 ],
115}