blob: 34c6bf4c7902d915c75fca8f698ea342356ecaf0 [file] [log] [blame]
Brian Silvermanda45b6c2014-12-28 11:36:50 -08001#ifndef FRC971_WPILIB_JOYSTICK_SENDER_H_
2#define FRC971_WPILIB_JOYSTICK_SENDER_H_
3
4#include <atomic>
5
Austin Schuhdf6cbb12019-02-02 13:46:52 -08006#include "aos/events/event-loop.h"
7#include "aos/robot_state/robot_state.q.h"
8
Brian Silvermanda45b6c2014-12-28 11:36:50 -08009namespace frc971 {
10namespace wpilib {
11
12class JoystickSender {
13 public:
Austin Schuhbd1fe9c2019-06-29 16:35:48 -070014 JoystickSender(::aos::EventLoop *event_loop);
Brian Silvermanda45b6c2014-12-28 11:36:50 -080015
16 private:
Austin Schuhdf6cbb12019-02-02 13:46:52 -080017 ::aos::EventLoop *event_loop_;
18 ::aos::Sender<::aos::JoystickState> joystick_state_sender_;
Austin Schuhbd1fe9c2019-06-29 16:35:48 -070019 const uint16_t team_id_;
Brian Silvermanda45b6c2014-12-28 11:36:50 -080020};
21
22} // namespace wpilib
23} // namespace frc971
24
25#endif // FRC971_WPILIB_JOYSTICK_SENDER_H_