blob: 9f92f1740210990d6b508c3301a7e3cf77a35c05 [file] [log] [blame]
package(default_visibility = ['//visibility:public'])
load('//aos/build:queues.bzl', 'queue_library')
cc_binary(
name = 'replay_shooter',
srcs = [
'replay_shooter.cc',
],
deps = [
':shooter_queue',
'//aos/common/controls:replay_control_loop',
'//aos/linux_code:init',
],
)
queue_library(
name = 'shooter_queue',
srcs = [
'shooter.q',
],
deps = [
'//aos/common/controls:control_loop_queues',
'//frc971/control_loops:queues',
],
)
genrule(
name = 'genrule_shooter',
visibility = ['//visibility:private'],
cmd = '$(location //y2014/control_loops/python:shooter) $(OUTS)',
tools = [
'//y2014/control_loops/python:shooter',
],
outs = [
'shooter_motor_plant.cc',
'shooter_motor_plant.h',
'unaugmented_shooter_motor_plant.cc',
'unaugmented_shooter_motor_plant.h',
],
)
cc_library(
name = 'shooter_lib',
srcs = [
'shooter.cc',
'shooter_motor_plant.cc',
'unaugmented_shooter_motor_plant.cc',
],
hdrs = [
'shooter.h',
'shooter_motor_plant.h',
'unaugmented_shooter_motor_plant.h',
],
deps = [
':shooter_queue',
'//aos/common/controls:control_loop',
'//y2014:constants',
'//frc971/control_loops:state_feedback_loop',
'//aos/common/logging:queue_logging',
'//debian:libm',
],
)
cc_test(
name = 'shooter_lib_test',
srcs = [
'shooter_lib_test.cc',
],
deps = [
':shooter_lib',
':shooter_queue',
'//aos/common/controls:control_loop_test',
'//aos/testing:googletest',
'//frc971/control_loops:state_feedback_loop',
'//frc971/control_loops:team_number_test_environment',
],
)
cc_binary(
name = 'shooter',
srcs = [
'shooter_main.cc',
],
deps = [
'//aos/linux_code:init',
':shooter_lib',
],
)