Valor 6800
1.0
Loading...
Searching...
No Matches
AutoChooser.h
1
2
#pragma once
3
#include <string>
4
#include <unordered_map>
5
6
#include <frc/smartdashboard/SendableChooser.h>
7
#include <frc2/command/CommandPtr.h>
8
9
namespace
valor {
10
11
class
AutoChooser
: frc::SendableChooser<std::string> {
12
public
:
13
static
frc2::Command* Get();
14
static
void
Add(std::string name, frc2::CommandPtr command);
15
16
private
:
17
AutoChooser
();
18
void
PreloadAuto(std::string name);
19
20
std::unordered_map<std::string, frc2::CommandPtr> loadedAutos;
21
static
AutoChooser
valorAuto;
22
};
23
24
}
// namespace valor
valor::AutoChooser
Definition
AutoChooser.h:11
src
main
include
valkyrie
AutoChooser.h
Generated by
1.10.0