Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
chassis_command_map.hpp
Go to the documentation of this file.
1#ifndef FANG_ROBOTICS_MCB_PIERCE_CHASSIS_COMMAND_MAP_HPP
2#define FANG_ROBOTICS_MCB_PIERCE_CHASSIS_COMMAND_MAP_HPP
4namespace fang::robot
5{
8 using Key = Remote::Key;
9 //This is the state of the right switch to activate choosing a command for the chassis
10 static const SwitchState k_chassisRightSwitchContext{SwitchState::DOWN};
11
12 static const SwitchState k_fieldMecanumLeftSwitchActivate{SwitchState::MID};
13 static const SwitchState k_fieldShurikenLeftSwitchActivate{SwitchState::UP};
14 static const SwitchState k_tardisLeftSwitchActivate{SwitchState::DOWN};
15
16 static const tap::control::RemoteMapState kFieldMecanumRemoteState
17 {
18 k_chassisRightSwitchContext,
19 k_fieldMecanumLeftSwitchActivate
20 };
21
22 static const tap::control::RemoteMapState kShurikenModeRemoteState
23 {
24 k_chassisRightSwitchContext,
25 k_fieldShurikenLeftSwitchActivate
26 };
27
28 static const tap::control::RemoteMapState kTardisModeRemoteState
29 {
30 k_chassisRightSwitchContext,
31 k_tardisLeftSwitchActivate
32 };
33
34 static const tap::control::RemoteMapState kFieldMecanumKeyboardState
35 {
36 {Key::E}
37 };
38
39 static const tap::control::RemoteMapState kShurikenModeKeyboardState
40 {
41 {Key::Q}
42 };
43
44 static const tap::control::RemoteMapState kTardisModeKeyboardState
45 {
46 {Key::R}
47 };
48}
49#endif
Definition remote.hpp:51
Key
Definition remote.hpp:93
SwitchState
Definition remote.hpp:82
Definition remote_map_state.hpp:56
Definition base_robot.cpp:4
Remote::SwitchState SwitchState
Definition chassis_command_map.hpp:7
tap::communication::serial::Remote Remote
Definition chassis_input_config.hpp:7
Remote::Key Key
Definition chassis_input_config.hpp:9