brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | { |
| 2 | 'variables': { |
| 3 | 'loop_files': [ |
| 4 | 'DriveTrain.q', |
Austin Schuh | dc1c84a | 2013-02-23 16:33:10 -0800 | [diff] [blame] | 5 | 'wrist_motor.q', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 6 | ] |
| 7 | }, |
| 8 | 'targets': [ |
| 9 | { |
Brian Silverman | 5275ade | 2013-03-03 12:58:25 -0800 | [diff] [blame^] | 10 | 'target_name': 'state_feedback_loop', |
| 11 | 'type': 'static_library', |
| 12 | 'sources': [ |
| 13 | #'state_feedback_loop.h' |
| 14 | ], |
| 15 | 'dependencies': [ |
| 16 | '<(EXTERNALS):eigen', |
| 17 | ], |
| 18 | 'export_dependent_settings': [ |
| 19 | '<(EXTERNALS):eigen', |
| 20 | ], |
| 21 | }, |
| 22 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 23 | 'target_name': 'control_loops', |
| 24 | 'type': 'static_library', |
| 25 | 'sources': ['<@(loop_files)'], |
| 26 | 'variables': { |
| 27 | 'header_path': 'frc971/control_loops', |
| 28 | }, |
| 29 | 'dependencies': [ |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 30 | '<(AOS)/common/common.gyp:control_loop_queues', |
| 31 | '<(AOS)/common/common.gyp:queues', |
| 32 | ], |
| 33 | 'export_dependent_settings': [ |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 34 | '<(AOS)/common/common.gyp:control_loop_queues', |
| 35 | '<(AOS)/common/common.gyp:queues', |
| 36 | ], |
| 37 | 'includes': ['../../aos/build/queues.gypi'], |
| 38 | }, |
| 39 | { |
Austin Schuh | dc1c84a | 2013-02-23 16:33:10 -0800 | [diff] [blame] | 40 | 'target_name': 'wrist_lib', |
| 41 | 'type': 'static_library', |
| 42 | 'sources': [ |
| 43 | 'wrist.cc', |
| 44 | 'wrist_motor_plant.cc', |
| 45 | ], |
| 46 | 'dependencies': [ |
| 47 | '<(AOS)/build/aos.gyp:libaos', |
| 48 | 'control_loops', |
| 49 | '<(AOS)/common/common.gyp:controls', |
| 50 | '<(DEPTH)/frc971/frc971.gyp:common', |
| 51 | '<(EXTERNALS):eigen', |
| 52 | ], |
Austin Schuh | 464ee1a | 2013-03-01 22:37:39 -0800 | [diff] [blame] | 53 | 'export_dependent_settings': [ |
| 54 | '<(EXTERNALS):eigen', |
| 55 | '<(AOS)/common/common.gyp:controls', |
| 56 | 'control_loops', |
| 57 | ], |
Austin Schuh | dc1c84a | 2013-02-23 16:33:10 -0800 | [diff] [blame] | 58 | }, |
| 59 | { |
| 60 | 'target_name': 'wrist_lib_test', |
| 61 | 'type': 'executable', |
| 62 | 'sources': [ |
| 63 | 'wrist_lib_test.cc', |
| 64 | ], |
| 65 | 'dependencies': [ |
| 66 | '<(EXTERNALS):gtest', |
| 67 | '<(AOS)/build/aos.gyp:libaos', |
| 68 | 'control_loops', |
| 69 | 'wrist_lib', |
| 70 | '<(AOS)/common/common.gyp:queue_testutils', |
| 71 | '<(EXTERNALS):eigen', |
| 72 | ], |
| 73 | }, |
| 74 | { |
| 75 | 'target_name': 'wrist', |
| 76 | 'type': 'executable', |
| 77 | 'sources': [ |
| 78 | 'wrist_main.cc', |
| 79 | ], |
| 80 | 'dependencies': [ |
| 81 | '<(AOS)/build/aos.gyp:libaos', |
| 82 | 'wrist_lib', |
| 83 | 'control_loops', |
| 84 | ], |
| 85 | }, |
| 86 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 87 | 'target_name': 'DriveTrain', |
| 88 | 'type': 'executable', |
| 89 | 'sources': [ |
| 90 | 'DriveTrain.cc', |
| 91 | ], |
| 92 | 'dependencies': [ |
| 93 | '<(AOS)/build/aos.gyp:logging', |
| 94 | '<(AOS)/common/common.gyp:controls', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 95 | 'control_loops', |
| 96 | '<(DEPTH)/frc971/queues/queues.gyp:queues', |
| 97 | '<(EXTERNALS):eigen', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 98 | '<(AOS)/atom_code/atom_code.gyp:init', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 99 | ], |
| 100 | }, |
| 101 | ], |
| 102 | } |