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