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
17
struct
CustomAuton
{
18
std::string
name
;
19
std::function<void()>
fn
;
20
};
21
28
void
display_splash
(
const
char
* mode);
29
38
void
custom_selector_add
(
const
std::string& name, std::function<
void
()> fn);
39
41
void
custom_selector_init
();
42
44
int
custom_selector_get
();
45
47
void
custom_selector_run
();
display_splash
void display_splash(const char *mode)
Render a splash banner showing the active mode.
custom_selector_init
void custom_selector_init()
Build the custom selector UI.
custom_selector_run
void custom_selector_run()
Invoke the currently selected custom auton (call from autonomous()).
custom_selector_get
int custom_selector_get()
custom_selector_add
void custom_selector_add(const std::string &name, std::function< void()> fn)
Append a routine to the custom selector.
main.h
Contains common definitions and header files used throughout your PROS project.
CustomAuton
A bare-bones registered auton: just a name and a callback.
Definition
custom_selector.hpp:17
CustomAuton::fn
std::function< void()> fn
Routine to invoke when selected.
Definition
custom_selector.hpp:19
CustomAuton::name
std::string name
Display name.
Definition
custom_selector.hpp:18
include
LightLib
ui
custom_selector.hpp
Generated by
1.9.8