blob: e2609e8f6d2ce189c4b4f85ce76a73d257de3294 [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
Alex Perrycb7da4b2019-08-28 19:35:56 -07006#include "aos/events/event_loop.h"
7#include "aos/robot_state/joystick_state_generated.h"
Austin Schuhdf6cbb12019-02-02 13:46:52 -08008
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_