|
Formula Student Autonomous Systems
The code for the main driverless system
|
Enum for colors. More...
Enumerations | |
| enum class | Color { BLUE = 0 , YELLOW , ORANGE , LARGE_ORANGE , UNKNOWN } |
| enum class | Mission { MANUAL = 0 , ACCELERATION = 1 , SKIDPAD = 2 , AUTOCROSS = 3 , TRACKDRIVE = 4 , EBS_TEST = 5 , INSPECTION = 6 , NONE = 7 } |
Functions | |
| bool | operator== (const Color &color, const int &value) |
| bool | operator== (const int &value, const Color &color) |
| std::string | get_color_string (int color) |
| std::string | get_color_string (Color color) |
| Color | get_color_enum (const std::string &color) |
| bool | operator== (const Mission &mission, const int &value) |
| bool | operator== (const int &value, const Mission &mission) |
| std::string | get_mission_string (int mission) |
| Mission | get_mission_from_eufs (unsigned short eufs_mission) |
Variables | |
| const std::map< std::string, Color, std::less<> > | STRING_COLOR_MAP |
| const std::map< Color, std::string > | COLOR_STRING_MAP |
| const std::map< Mission, std::string > | MISSION_STRING_MAP |
| const std::unordered_map< unsigned short, Mission > | eufs_to_system |
| const std::unordered_map< std::string, Mission > | fsds_to_system |
| const std::map< std::string, Color, std::less<> > | STRING_TO_COLOR |
| const std::map< Color, std::string > | COLOR_TO_STRING |
Enum for colors.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| MANUAL | |
| ACCELERATION | |
| SKIDPAD | |
| AUTOCROSS | |
| TRACKDRIVE | |
| EBS_TEST | |
| INSPECTION | |
| NONE | |
Definition at line 11 of file mission_logic.hpp.
| Color common_lib::competition_logic::get_color_enum | ( | const std::string & | color | ) |
| std::string common_lib::competition_logic::get_color_string | ( | Color | color | ) |
| std::string common_lib::competition_logic::get_color_string | ( | int | color | ) |
| Mission common_lib::competition_logic::get_mission_from_eufs | ( | unsigned short | eufs_mission | ) |
| std::string common_lib::competition_logic::get_mission_string | ( | int | mission | ) |
| bool common_lib::competition_logic::operator== | ( | const Color & | color, |
| const int & | value | ||
| ) |
| bool common_lib::competition_logic::operator== | ( | const int & | value, |
| const Color & | color | ||
| ) |
| bool common_lib::competition_logic::operator== | ( | const int & | value, |
| const Mission & | mission | ||
| ) |
Definition at line 12 of file mission_logic.cpp.
| bool common_lib::competition_logic::operator== | ( | const Mission & | mission, |
| const int & | value | ||
| ) |
Definition at line 8 of file mission_logic.cpp.
|
extern |
| const std::map<Color, std::string> common_lib::competition_logic::COLOR_TO_STRING |
| const std::unordered_map<unsigned short, Mission> common_lib::competition_logic::eufs_to_system |
Definition at line 39 of file mission_logic.hpp.
| const std::unordered_map<std::string, Mission> common_lib::competition_logic::fsds_to_system |
Definition at line 49 of file mission_logic.hpp.
| const std::map<Mission, std::string> common_lib::competition_logic::MISSION_STRING_MAP |
Definition at line 26 of file mission_logic.hpp.
|
extern |
| const std::map<std::string, Color, std::less<> > common_lib::competition_logic::STRING_TO_COLOR |