Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | load('/aos/build/queues', 'queue_library') |
| 4 | |
| 5 | cc_binary( |
| 6 | name = 'replay_drivetrain', |
| 7 | srcs = [ |
| 8 | 'replay_drivetrain.cc', |
| 9 | ], |
| 10 | deps = [ |
| 11 | ':drivetrain_queue', |
| 12 | '//aos/common/controls:replay_control_loop', |
| 13 | '//aos/linux_code:init', |
| 14 | '//frc971/queues:gyro', |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | queue_library( |
| 19 | name = 'drivetrain_queue', |
| 20 | srcs = [ |
| 21 | 'drivetrain.q', |
| 22 | ], |
| 23 | deps = [ |
| 24 | '//aos/common/controls:control_loop_queues', |
| 25 | ], |
| 26 | ) |
| 27 | |
| 28 | cc_library( |
| 29 | name = 'drivetrain_config', |
| 30 | hdrs = [ |
| 31 | 'drivetrain_config.h', |
| 32 | ], |
| 33 | deps = [ |
| 34 | '//frc971/control_loops:state_feedback_loop', |
| 35 | '//frc971:shifter_hall_effect', |
| 36 | ], |
| 37 | ) |
| 38 | |
| 39 | cc_library( |
| 40 | name = 'ssdrivetrain', |
| 41 | srcs = [ |
| 42 | 'ssdrivetrain.cc', |
| 43 | ], |
| 44 | hdrs = [ |
| 45 | 'ssdrivetrain.h', |
| 46 | ], |
| 47 | deps = [ |
| 48 | ':drivetrain_queue', |
| 49 | ':drivetrain_config', |
| 50 | '//aos/common/controls:polytope', |
| 51 | '//aos/common:math', |
| 52 | '//aos/common/messages:robot_state', |
| 53 | '//frc971/control_loops:state_feedback_loop', |
| 54 | '//frc971/control_loops:coerce_goal', |
| 55 | '//frc971:shifter_hall_effect', |
| 56 | '//aos/common/util:log_interval', |
| 57 | '//aos/common/logging:queue_logging', |
| 58 | '//aos/common/logging:matrix_logging', |
| 59 | ], |
| 60 | ) |
| 61 | |
| 62 | cc_library( |
| 63 | name = 'polydrivetrain', |
| 64 | srcs = [ |
| 65 | 'polydrivetrain.cc', |
| 66 | ], |
| 67 | hdrs = [ |
| 68 | 'polydrivetrain.h', |
| 69 | ], |
| 70 | deps = [ |
| 71 | ':drivetrain_queue', |
| 72 | ':drivetrain_config', |
| 73 | '//aos/common/controls:polytope', |
| 74 | '//aos/common:math', |
| 75 | '//aos/common/messages:robot_state', |
| 76 | '//frc971/control_loops:state_feedback_loop', |
| 77 | '//frc971/control_loops:coerce_goal', |
| 78 | '//aos/common/util:log_interval', |
| 79 | '//aos/common/logging:queue_logging', |
| 80 | '//aos/common/logging:matrix_logging', |
| 81 | ], |
| 82 | ) |
| 83 | |
| 84 | cc_library( |
| 85 | name = 'drivetrain_lib', |
| 86 | srcs = [ |
| 87 | 'drivetrain.cc', |
| 88 | ], |
| 89 | hdrs = [ |
| 90 | 'drivetrain.h', |
| 91 | ], |
| 92 | deps = [ |
| 93 | ':drivetrain_queue', |
| 94 | ':polydrivetrain', |
| 95 | ':ssdrivetrain', |
| 96 | '//aos/common/controls:control_loop', |
| 97 | '//frc971/queues:gyro', |
| 98 | '//aos/common/util:log_interval', |
| 99 | '//aos/common/logging:queue_logging', |
| 100 | '//aos/common/logging:matrix_logging', |
| 101 | ], |
| 102 | ) |
| 103 | |
| 104 | cc_test( |
| 105 | name = 'drivetrain_lib_test', |
| 106 | srcs = [ |
| 107 | 'drivetrain_lib_test.cc', |
| 108 | ], |
| 109 | deps = [ |
| 110 | '//aos/testing:googletest', |
| 111 | ':drivetrain_queue', |
| 112 | ':drivetrain_lib', |
| 113 | ':drivetrain_config', |
| 114 | '//aos/common/controls:control_loop_test', |
| 115 | '//frc971/control_loops:state_feedback_loop', |
| 116 | '//frc971/queues:gyro', |
| 117 | '//aos/common:queues', |
Comran Morshed | baf5784 | 2016-02-17 20:58:53 +0000 | [diff] [blame^] | 118 | '//y2016:constants', |
| 119 | '//y2016/control_loops/drivetrain:polydrivetrain_plants', |
Comran Morshed | 5323ecb | 2015-12-26 20:50:55 +0000 | [diff] [blame] | 120 | ], |
| 121 | ) |