#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <atomic>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <mutex>
#include <set>
#include <string>
#include <thread>
#include <vector>
#include "BoardListener.hpp"
#include "control/ActuatorCommander.hpp"
#include "control/StateMachine.hpp"
Go to the source code of this file.
|
| class | BoardListener |
| | Collects UDP actuator packets, folding the 3x retransmit of one batch into a single burst. More...
|
| struct | Burst |
| | One received command burst: when it arrived (ms since the listener started) and what it said. More...
|
| class | ActuatorCommander |
| | Sends UDP actuator commands based on state transitions. More...
|
|
| enum class | State |
| | System state IDs — must match the TypeScript SystemState enum in web-gui/shared/types.ts. More...
|
◆ 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 75 of file test_actuator_delays.cpp.
References sequencer::ActuatorCommander::applyForState(), sequencer::ARMED, b, daqtest::BoardListener::bursts(), check(), daqtest::firstCommand(), g_failures, sequencer::IDLE, sequencer::ActuatorCommander::load(), port, daqtest::BoardListener::start(), sequencer::ActuatorCommander::startContinuousLoop(), daqtest::BoardListener::stop(), sequencer::ActuatorCommander::stopContinuousLoop(), target, and writeFixture().
◆ writeFixture()
| std::string writeFixture |
( |
const fs::path & | dir, |
|
|
uint16_t | port, |
|
|
double | slow_delay_s ) |
|
static |
◆ g_failures