#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <atomic>
#include <chrono>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <mutex>
#include <set>
#include <string>
#include <thread>
#include <vector>
#include "DiabloPacketUtils.h"
#include "control/ActuatorCommander.hpp"
#include "control/HoldTimer.hpp"
#include "control/StateMachine.hpp"
Go to the source code of this file.
|
| enum class | State |
| | System state IDs — must match the TypeScript SystemState enum in web-gui/shared/types.ts. More...
|
|
| static void | check (bool ok, const std::string &what) |
| int | main () |
◆ State
System state IDs — must match the TypeScript SystemState enum in web-gui/shared/types.ts.
Definition at line 14 of file StateMachine.hpp.
◆ check()
| void check |
( |
bool | ok, |
|
|
const std::string & | what ) |
|
static |
◆ main()
Definition at line 55 of file test_fire_lifecycle.cpp.
References active, sequencer::ActuatorCommander::applyForState(), at(), check(), count(), sequencer::HoldTimer::extend(), StateMachine::fromName(), g_failures, idle, sequencer::HoldTimer::isActive(), lk, sequencer::ActuatorCommander::load(), daq::parse_actuator_command_packet(), port, sequencer::ActuatorCommander::setFireState(), sequencer::HoldTimer::start(), StateMachine::stateId(), and sequencer::HoldTimer::stop().
◆ g_failures