#include <chrono>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <string>
#include <thread>
#include "BoardListener.hpp"
#include "control/ActuatorCommander.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) |
| static std::string | writeFixture (const fs::path &dir, uint16_t port, double staged_delay_s) |
| | Channel 1 = Vent Valve, channel 2 = Staged Valve (which the Armed column staggers).
|
| static int | countCommands (const std::vector< daqtest::Burst > &bursts, uint8_t ch, uint8_t hw) |
| | How many distinct bursts commanded ch to hw.
|
| int | main () |
| long long | firstCommand (const std::vector< Burst > &bursts, uint8_t ch, uint8_t hw, long long after_ms=-1) |
| | When ch was first commanded to hw at or after after_ms.
|
◆ 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 |
◆ countCommands()
| int countCommands |
( |
const std::vector< daqtest::Burst > & | bursts, |
|
|
uint8_t | ch, |
|
|
uint8_t | hw ) |
|
static |
◆ firstCommand()
When ch was first commanded to hw at or after after_ms.
-1 if it never was.
Definition at line 133 of file BoardListener.hpp.
Referenced by main().
◆ main()
Definition at line 79 of file test_script_positions.cpp.
References sequencer::ActuatorCommander::applyForState(), sequencer::ARMED, b, daqtest::BoardListener::bursts(), check(), sequencer::ActuatorCommander::clearScriptPositions(), countCommands(), firstCommand(), g_failures, sequencer::ActuatorCommander::load(), port, sequencer::ActuatorCommander::sendSingleActuator(), sequencer::ActuatorCommander::setManualOverride(), sequencer::ActuatorCommander::setScriptPosition(), daqtest::BoardListener::start(), sequencer::ActuatorCommander::startContinuousLoop(), daqtest::BoardListener::stop(), sequencer::ActuatorCommander::stopContinuousLoop(), and writeFixture().
◆ writeFixture()
| std::string writeFixture |
( |
const fs::path & | dir, |
|
|
uint16_t | port, |
|
|
double | staged_delay_s ) |
|
static |
◆ g_failures