| package(default_visibility = ['//visibility:public']) |
| |
| load('//aos/build:queues.bzl', 'queue_library') |
| |
| queue_library( |
| name = 'logging_queue', |
| srcs = [ |
| 'logging.q', |
| ], |
| ) |
| |
| cc_library( |
| name = 'encoder_and_potentiometer', |
| srcs = [ |
| 'encoder_and_potentiometer.cc', |
| ], |
| hdrs = [ |
| 'encoder_and_potentiometer.h', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| ':dma_edge_counting', |
| '//aos/linux_code:init', |
| '//aos/common/logging', |
| '//aos/common:mutex', |
| ':dma', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'dma_edge_counting', |
| srcs = [ |
| 'dma_edge_counting.cc', |
| ], |
| hdrs = [ |
| 'dma_edge_counting.h', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| '//aos/common/logging', |
| ':dma', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'interrupt_edge_counting', |
| srcs = [ |
| 'interrupt_edge_counting.cc', |
| ], |
| hdrs = [ |
| 'interrupt_edge_counting.h', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| '//aos/common/logging', |
| '//aos/common:stl_mutex', |
| '//aos/common:time', |
| '//aos/linux_code:init', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'buffered_pcm', |
| srcs = [ |
| 'buffered_solenoid.cc', |
| 'buffered_pcm.cc', |
| ], |
| hdrs = [ |
| 'buffered_solenoid.h', |
| 'buffered_pcm.h', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| '//aos/common/logging', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'gyro_interface', |
| srcs = [ |
| 'gyro_interface.cc', |
| ], |
| hdrs = [ |
| 'gyro_interface.h', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| '//aos/common/logging', |
| '//aos/common:time', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'gyro_sender', |
| srcs = [ |
| 'gyro_sender.cc', |
| ], |
| hdrs = [ |
| 'gyro_sender.h', |
| ], |
| deps = [ |
| ':gyro_interface', |
| '//frc971/queues:gyro', |
| '//frc971/zeroing:averager', |
| '//aos/common/logging', |
| '//aos/common/logging:queue_logging', |
| '//aos/common/util:phased_loop', |
| '//aos/common/messages:robot_state', |
| '//aos/linux_code:init', |
| '//aos/common:time', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'lpd8806', |
| srcs = [ |
| 'LPD8806.cc', |
| ], |
| hdrs = [ |
| 'LPD8806.h', |
| ], |
| deps = [ |
| '//aos/common:mutex', |
| '//third_party:wpilib', |
| '//frc971/queues:gyro', |
| '//aos/common:time', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'loop_output_handler', |
| srcs = [ |
| 'loop_output_handler.cc', |
| ], |
| hdrs = [ |
| 'loop_output_handler.h', |
| ], |
| deps = [ |
| '//aos/common:scoped_fd', |
| '//aos/linux_code:init', |
| '//aos/common:time', |
| '//aos/common/util:log_interval', |
| '//aos/common/messages:robot_state', |
| ], |
| ) |
| |
| cc_library( |
| name = 'joystick_sender', |
| srcs = [ |
| 'joystick_sender.cc', |
| ], |
| hdrs = [ |
| 'joystick_sender.h', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| '//aos/common/messages:robot_state', |
| '//aos/linux_code:init', |
| '//aos/common/network:team_number', |
| '//aos/common/logging:queue_logging', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'wpilib_interface', |
| srcs = [ |
| 'wpilib_interface.cc', |
| ], |
| hdrs = [ |
| 'wpilib_interface.h', |
| ], |
| deps = [ |
| '//aos/common/messages:robot_state', |
| '//third_party:wpilib', |
| '//aos/common/logging:queue_logging', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| queue_library( |
| name = 'pdp_values', |
| srcs = [ |
| 'pdp_values.q', |
| ], |
| ) |
| |
| cc_library( |
| name = 'pdp_fetcher', |
| srcs = [ |
| 'pdp_fetcher.cc', |
| ], |
| hdrs = [ |
| 'pdp_fetcher.h', |
| ], |
| deps = [ |
| ':pdp_values', |
| '//third_party:wpilib', |
| '//aos/common/logging:queue_logging', |
| '//aos/linux_code:init', |
| '//aos/common/util:phased_loop', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'wpilib_robot_base', |
| hdrs = [ |
| 'wpilib_robot_base.h', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| queue_library( |
| name = 'imu_queue', |
| srcs = [ |
| 'imu.q', |
| ], |
| ) |
| |
| cc_library( |
| name = 'ADIS16448', |
| hdrs = [ |
| 'ADIS16448.h', |
| ], |
| srcs = [ |
| 'ADIS16448.cc', |
| ], |
| deps = [ |
| ':imu_queue', |
| '//aos/common/logging', |
| '//aos/common/logging:queue_logging', |
| '//aos/common/messages:robot_state', |
| '//aos/common:time', |
| '//aos/linux_code:init', |
| '//frc971/zeroing:averager', |
| '//third_party:wpilib', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |
| |
| cc_library( |
| name = 'dma', |
| hdrs = [ |
| 'dma.h', |
| ], |
| srcs = [ |
| 'dma.cc', |
| ], |
| deps = [ |
| '//third_party:wpilib', |
| ], |
| restricted_to = ['//tools:roborio'], |
| ) |