|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Namespaces | |
| namespace | anonymous_namespace{ControllerLUT.cpp} |
Classes | |
| class | ControllerLUT |
| Controller LUT loader with multilinear interpolation. More... | |
| class | ControllerService |
| C++ controller service with UDP PWM output. More... | |
| class | PressureStateMachine |
| Pressure-based State Machine for Propulsion System. More... | |
| struct | PWMResolution |
| class | RobustDDPController |
| Robust Hybrid Optimal Controller. More... | |
Functions | |
| std::map< int, std::string > | boardIpMap (const fsw::config::Config &cfg) |
| board_id → IP from [boards. | |
| PWMResolution | resolvePWMTargets (const fsw::config::Config &cfg) |
| template<typename T> | |
| static bool | send_msg (fsw::elodin::ElodinClient &client, T msg) |
Variables | |
| constexpr int | N_STATE = 11 |
| constexpr int | N_CONTROL = 2 |
| constexpr int | IDX_P_COPV = 0 |
| constexpr int | IDX_P_REG = 1 |
| constexpr int | IDX_P_U_F = 2 |
| constexpr int | IDX_P_U_O = 3 |
| constexpr int | IDX_P_D_F = 4 |
| constexpr int | IDX_P_D_O = 5 |
| constexpr int | IDX_V_U_F = 6 |
| constexpr int | IDX_V_U_O = 7 |
| constexpr int | IDX_M_GAS_COPV = 8 |
| constexpr int | IDX_M_GAS_F = 9 |
| constexpr int | IDX_M_GAS_O = 10 |
| constexpr double | GAMMA_N2 = 1.4 |
| constexpr double | R_GAS_N2 = 296.8 |
| constexpr double | G0 = 9.807 |
| static constexpr uint8_t | PACKET_TYPE_PWM = 10 |
| static constexpr uint8_t | COMMS_VERSION = 0 |
| static constexpr size_t | HEADER_SIZE = 6 |
| static constexpr size_t | BODY_SIZE = 1 |
| static constexpr size_t | CMD_SIZE = 13 |
| static constexpr size_t | SINGLE_CMD_PACKET_SIZE = HEADER_SIZE + BODY_SIZE + CMD_SIZE |
| static constexpr size_t | DUAL_CMD_PACKET_SIZE = HEADER_SIZE + BODY_SIZE + CMD_SIZE * 2 |
|
inline |
board_id → IP from [boards.
*] (non-empty ip, first wins). No synthesized entries: a board this map does not hold is a board config did not declare.
Definition at line 47 of file PWMTargets.hpp.
References b.
Referenced by resolvePWMTargets().
|
inline |
Definition at line 55 of file PWMTargets.hpp.
References boardIpMap(), res, and target.
|
static |
Definition at line 922 of file ControllerService.cpp.
Referenced by fsw::control::ControllerService::registerControllerTables().
|
staticconstexpr |
Definition at line 59 of file ControllerService.cpp.
|
staticconstexpr |
Definition at line 60 of file ControllerService.cpp.
|
staticconstexpr |
Definition at line 57 of file ControllerService.cpp.
Referenced by fsw::control::ControllerService::sendPWMCommand(), and fsw::control::ControllerService::sendPWMCommands().
|
staticconstexpr |
Definition at line 62 of file ControllerService.cpp.
Referenced by fsw::control::ControllerService::sendPWMCommands().
|
constexpr |
Definition at line 38 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildReference(), main(), and fsw::control::RobustDDPController::shouldCutoff().
|
constexpr |
Definition at line 36 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::dynamicsStep().
|
staticconstexpr |
Definition at line 58 of file ControllerService.cpp.
|
constexpr |
Definition at line 31 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), and fsw::control::RobustDDPController::dynamicsStep().
|
constexpr |
Definition at line 32 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), and fsw::control::RobustDDPController::dynamicsStep().
|
constexpr |
Definition at line 33 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), and fsw::control::RobustDDPController::dynamicsStep().
|
constexpr |
Definition at line 23 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), fsw::control::RobustDDPController::dynamicsStep(), fsw::control::RobustDDPController::isStateSafe(), and fsw::control::RobustDDPController::runningCost().
|
constexpr |
Definition at line 27 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), fsw::control::RobustDDPController::dynamicsStep(), fsw::control::RobustDDPController::economicDecision(), fsw::control::RobustDDPController::enumerativeMPC(), fsw::control::RobustDDPController::isActionSafe(), fsw::control::RobustDDPController::isStateSafe(), fsw::control::RobustDDPController::runningCost(), fsw::control::RobustDDPController::solveDDP(), and fsw::control::RobustDDPController::step().
|
constexpr |
Definition at line 28 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), fsw::control::RobustDDPController::dynamicsStep(), fsw::control::RobustDDPController::economicDecision(), fsw::control::RobustDDPController::enumerativeMPC(), fsw::control::RobustDDPController::isActionSafe(), fsw::control::RobustDDPController::isStateSafe(), fsw::control::RobustDDPController::runningCost(), fsw::control::RobustDDPController::solveDDP(), and fsw::control::RobustDDPController::step().
|
constexpr |
Definition at line 24 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState().
|
constexpr |
Definition at line 25 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), fsw::control::RobustDDPController::dynamicsStep(), and fsw::control::RobustDDPController::isStateSafe().
|
constexpr |
Definition at line 26 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), fsw::control::RobustDDPController::dynamicsStep(), and fsw::control::RobustDDPController::isStateSafe().
|
constexpr |
Definition at line 29 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), and fsw::control::RobustDDPController::dynamicsStep().
|
constexpr |
Definition at line 30 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), and fsw::control::RobustDDPController::dynamicsStep().
|
constexpr |
Definition at line 20 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::economicDecision(), fsw::control::RobustDDPController::enumerativeMPC(), fsw::control::RobustDDPController::filterAction(), fsw::control::RobustDDPController::linearize(), fsw::control::RobustDDPController::solveDDP(), and fsw::control::RobustDDPController::step().
|
constexpr |
Definition at line 18 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), fsw::control::RobustDDPController::dynamicsStep(), fsw::control::RobustDDPController::linearize(), fsw::control::RobustDDPController::reset(), fsw::control::RobustDDPController::RobustDDPController(), and fsw::control::RobustDDPController::solveDDP().
|
staticconstexpr |
Definition at line 56 of file ControllerService.cpp.
Referenced by fsw::control::ControllerService::sendPWMCommand(), and fsw::control::ControllerService::sendPWMCommands().
|
constexpr |
Definition at line 37 of file RobustDDPController.hpp.
Referenced by fsw::control::RobustDDPController::buildState(), and fsw::control::RobustDDPController::dynamicsStep().
|
staticconstexpr |
Definition at line 61 of file ControllerService.cpp.
Referenced by fsw::control::ControllerService::sendPWMCommand().