Valkyrie 2026
Loading...
Searching...
No Matches
AutoChooser.h
1#pragma once
2#include <string>
3#include <unordered_map>
4
5#include <frc2/command/CommandPtr.h>
6
7#include "valkyrie/util/SendableChooser.h"
8
9namespace valor {
10
11class AutoChooser : valor::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
19 std::unordered_map<std::string, frc2::CommandPtr> loadedAutos;
20 static AutoChooser valorAuto;
21};
22
23} // namespace valor
Definition SendableChooser.h:7