Valor 6800 1.0
Loading...
Searching...
No Matches
CharMode.h
1
2#pragma once
3
4#include <map>
5#include <memory>
6#include <string>
7#include <unordered_map>
8
9#include <frc/smartdashboard/SendableChooser.h>
10#include <frc/smartdashboard/SmartDashboard.h>
11#include <networktables/NetworkTable.h>
12#include <networktables/NetworkTableInstance.h>
13
14namespace valor {
15
16class CharMode {
17 public:
18 void init();
19
24
25 enum MODE_OPTIONS { NONE, ROT, STR_LINE };
26
27 std::unordered_map<MODE_OPTIONS, std::string> modeMap{{NONE, "None"}, {ROT, "Rot"}, {STR_LINE, "Straight line test"}};
28
29 MODE_OPTIONS getSelected();
30
31 private:
32 std::shared_ptr<nt::NetworkTable> table;
33 frc::SendableChooser<int> chooser;
34};
35
36} // namespace valor
Definition CharMode.h:16
void fillSelectList()