Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
mission_logic.hpp File Reference
#include <map>
#include <string>
#include <unordered_map>
#include "eufs_msgs/msg/can_state.hpp"
Include dependency graph for mission_logic.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  common_lib
 
namespace  common_lib::competition_logic
 Enum for colors.
 

Enumerations

enum class  common_lib::competition_logic::Mission {
  common_lib::competition_logic::MANUAL = 0 , common_lib::competition_logic::ACCELERATION = 1 , common_lib::competition_logic::SKIDPAD = 2 , common_lib::competition_logic::AUTOCROSS = 3 ,
  common_lib::competition_logic::TRACKDRIVE = 4 , common_lib::competition_logic::EBS_TEST = 5 , common_lib::competition_logic::INSPECTION = 6 , common_lib::competition_logic::NONE = 7
}
 

Functions

bool common_lib::competition_logic::operator== (const Mission &mission, const int &value)
 
bool common_lib::competition_logic::operator== (const int &value, const Mission &mission)
 
std::string common_lib::competition_logic::get_mission_string (int mission)
 
Mission common_lib::competition_logic::get_mission_from_eufs (unsigned short eufs_mission)
 

Variables

const std::map< Mission, std::string > common_lib::competition_logic::MISSION_STRING_MAP
 
const std::unordered_map< unsigned short, Missioncommon_lib::competition_logic::eufs_to_system
 
const std::unordered_map< std::string, Missioncommon_lib::competition_logic::fsds_to_system