LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
custom_selector.hpp
Go to the documentation of this file.
1#pragma once
2#include <functional>
3#include <string>
4#include <vector>
5
6#include "LightLib/main.h"
7
18 std::string name;
19 std::function<void()> fn;
20};
21
28void display_splash(const char* mode);
29
38void custom_selector_add(const std::string& name, std::function<void()> fn);
39
42
45
void display_splash(const char *mode)
Render a splash banner showing the active mode.
void custom_selector_init()
Build the custom selector UI.
void custom_selector_run()
Invoke the currently selected custom auton (call from autonomous()).
int custom_selector_get()
void custom_selector_add(const std::string &name, std::function< void()> fn)
Append a routine to the custom selector.
Contains common definitions and header files used throughout your PROS project.
A bare-bones registered auton: just a name and a callback.
std::function< void()> fn
Routine to invoke when selected.
std::string name
Display name.