blob: 7cc51916b7c468823970d56507482f3102beb19f [file] [log] [blame]
Daniel Petti1f448512013-10-19 19:35:55 +00001{
2 'targets': [
3 {
4 'target_name': 'drivetrain_loop',
5 'type': 'static_library',
6 'sources': ['drivetrain.q'],
7 'variables': {
8 'header_path': 'bot3/control_loops/drivetrain',
9 },
10 'dependencies': [
11 '<(AOS)/common/common.gyp:control_loop_queues',
12 '<(AOS)/common/common.gyp:queues',
13 ],
14 'export_dependent_settings': [
15 '<(AOS)/common/common.gyp:control_loop_queues',
16 '<(AOS)/common/common.gyp:queues',
17 ],
18 'includes': ['../../../aos/build/queues.gypi'],
19 },
20 {
21 'target_name': 'drivetrain_lib',
22 'type': 'static_library',
23 'sources': [
24 'drivetrain.cc',
25 'drivetrain_motor_plant.cc',
26 ],
27 'dependencies': [
28 'drivetrain_loop',
29 '<(AOS)/common/common.gyp:controls',
Daniel Petti53b11092013-11-02 05:53:16 +000030 '<(DEPTH)/frc971/frc971.gyp:constants',
Daniel Petti1f448512013-10-19 19:35:55 +000031 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
32 '<(DEPTH)/frc971/queues/queues.gyp:queues',
33 ],
34 'export_dependent_settings': [
35 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
36 '<(AOS)/common/common.gyp:controls',
37 'drivetrain_loop',
38 ],
39 },
40 {
41 'target_name': 'drivetrain_lib_test',
42 'type': 'executable',
43 'sources': [
44 'drivetrain_lib_test.cc',
45 ],
46 'dependencies': [
47 '<(EXTERNALS):gtest',
48 'drivetrain_loop',
49 'drivetrain_lib',
50 '<(AOS)/common/common.gyp:queue_testutils',
51 '<(DEPTH)/frc971/control_loops/control_loops.gyp:state_feedback_loop',
52 '<(DEPTH)/frc971/queues/queues.gyp:queues',
53 ],
54 },
55 {
56 'target_name': 'drivetrain',
57 'type': 'executable',
58 'sources': [
59 'drivetrain_main.cc',
60 ],
61 'dependencies': [
62 '<(AOS)/atom_code/atom_code.gyp:init',
63 'drivetrain_lib',
64 'drivetrain_loop',
65 ],
66 },
67 ],
68}