#ifndef FRC971_WPILIB_JOYSTICK_SENDER_H_ | |
#define FRC971_WPILIB_JOYSTICK_SENDER_H_ | |
#include <atomic> | |
#include "aos/events/shm_event_loop.h" | |
#include "frc971/input/joystick_state_generated.h" | |
namespace frc971::wpilib { | |
class JoystickSender { | |
public: | |
JoystickSender(::aos::ShmEventLoop *event_loop); | |
private: | |
::aos::ShmEventLoop *event_loop_; | |
::aos::Sender<::aos::JoystickState> joystick_state_sender_; | |
const uint16_t team_id_; | |
}; | |
} // namespace frc971::wpilib | |
#endif // FRC971_WPILIB_JOYSTICK_SENDER_H_ |