2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
operator_control_box.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc/GenericHID.h>
8#include <frc/event/EventLoop.h>
9#include <frc2/command/button/Trigger.h>
10
12
13class OperatorControlBox : public frc::GenericHID {
14 private:
35
36 public:
37 explicit OperatorControlBox(int port);
38
39 [[nodiscard]] frc2::Trigger TriggerScoringPositionUpdated();
40
41 [[nodiscard]] ScoringPosition GetScoringPosition();
42
43 [[nodiscard]] frc2::Trigger TriggerStowPosition();
44
45 [[nodiscard]] frc2::Trigger TriggerLED();
46
47 [[nodiscard]] bool GetLEDStatus();
48
49 [[nodiscard]] frc2::Trigger TriggerSpareSwitch();
50
51 [[nodiscard]] bool GetSpareSwitchStatus();
52
53 [[nodiscard]] frc2::Trigger TriggerGamePiece();
54
55 // False if cone, Cube if true
56 [[nodiscard]] bool GetGamePieceStatus();
57
58 [[nodiscard]] GamePiece GetGamePiece();
59
60 [[nodiscard]] frc2::Trigger TriggerBashGuard();
61
62 [[nodiscard]] bool GetBashGuardStatus();
63
64 void Update();
65
66 private:
68
69 frc::EventLoop* m_pEvent;
71};
Definition operator_control_box.h:13
frc2::Trigger TriggerScoringPositionUpdated()
Definition operator_control_box.cpp:17
ScoringPosition UpdatePosition()
Definition operator_control_box.cpp:79
frc2::Trigger TriggerGamePiece()
Definition operator_control_box.cpp:55
bool GetLEDStatus()
Definition operator_control_box.cpp:43
BoxButtonIndex
Definition operator_control_box.h:15
@ boxIndex_rightGrid_leftCone
Definition operator_control_box.h:22
@ boxIndex_rightGrid_rightCone
Definition operator_control_box.h:24
@ boxIndex_middleGrid_leftCone
Definition operator_control_box.h:19
@ boxIndex_middleGrid_middleCube
Definition operator_control_box.h:20
@ boxIndex_middleGrid_rightCone
Definition operator_control_box.h:21
@ boxIndex_low
Definition operator_control_box.h:28
@ boxIndex_leftGrid_leftCone
Definition operator_control_box.h:16
@ boxIndex_middle
Definition operator_control_box.h:27
@ boxIndex_invalid
Definition operator_control_box.h:33
@ boxIndex_high
Definition operator_control_box.h:26
@ boxIndex_spare_switch
Definition operator_control_box.h:32
@ boxIndex_led
Definition operator_control_box.h:29
@ boxIndex_leftGrid_middleCube
Definition operator_control_box.h:17
@ boxIndex_rightGrid_middleCube
Definition operator_control_box.h:23
@ boxIndex_bash
Definition operator_control_box.h:31
@ boxIndex_game_piece
Definition operator_control_box.h:30
@ boxIndex_leftGrid_rightCone
Definition operator_control_box.h:18
@ boxIndex_stowPosition
Definition operator_control_box.h:25
bool GetSpareSwitchStatus()
Definition operator_control_box.cpp:51
ScoringPosition m_scoringPosition
Definition operator_control_box.h:70
frc::EventLoop * m_pEvent
Definition operator_control_box.h:69
void Update()
Definition operator_control_box.cpp:75
ScoringPosition GetScoringPosition()
Definition operator_control_box.cpp:31
frc2::Trigger TriggerLED()
Definition operator_control_box.cpp:39
frc2::Trigger TriggerSpareSwitch()
Definition operator_control_box.cpp:47
frc2::Trigger TriggerStowPosition()
Definition operator_control_box.cpp:35
bool GetBashGuardStatus()
Definition operator_control_box.cpp:71
frc2::Trigger TriggerBashGuard()
Definition operator_control_box.cpp:67
bool GetGamePieceStatus()
Definition operator_control_box.cpp:59
GamePiece GetGamePiece()
Definition operator_control_box.cpp:63
GamePiece
Definition field_points.h:44
Definition field_points.h:37