wip to parse vector of rois at command line
All checks were successful
Build on RHEL9 / build (push) Successful in 2m47s
Build on RHEL8 / build (push) Successful in 4m48s

This commit is contained in:
2025-06-17 00:00:50 +02:00
parent 06f06cfbf4
commit 56aa96e9b5
14 changed files with 244 additions and 166 deletions

View File

@@ -21,6 +21,7 @@ class Caller {
UdpDestination getUdpEntry();
int GetLevelAndInsertIntoArgs(std::string levelSeparatedCommand);
void WrongNumberOfParameters(size_t expected);
std::vector<defs::ROI> parseRoiVector(const std::string &input);
template <typename V> std::string OutStringHex(const V &value) {
if (value.equal())

View File

@@ -1739,13 +1739,12 @@ readout:
PUT:
function: startDetectorReadout
# TODO
#rx_clearroi:
# inherit_actions: EXECUTE_SET_COMMAND_NOID
# help: "\n\tResets Region of interest in receiver. Default is all channels/pixels enabled."
# actions:
# PUT:
# function: clearRxROI
rx_clearroi:
inherit_actions: EXECUTE_SET_COMMAND_NOID
help: "\n\tResets Region of interest in receiver. Default is all channels/pixels enabled."
actions:
PUT:
function: clearRxROI
################# EXECUTE_SET_COMMAND ########################
start:
@@ -2593,18 +2592,13 @@ rx_zmqip:
PUT:
argc: -1
#TODO
#rx_roi:
# is_description: true
# actions:
# GET:
# argc: 0
# PUT:
# args:
# - argc: 2
# arg_types: [ int, int ]
# - argc: 4
# arg_types: [ int, int, int, int ]
rx_roi:
is_description: true
actions:
GET:
argc: 0
PUT:
argc: -1
ratecorr:
is_description: true