mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 18:17:59 +02:00
G2hdi (#510)
* g2: new hdi values, write hdi value to reg, set slave/master to reg, able to set master from server config file, server command line and client * print versions for virtual as well
This commit is contained in:
@ -197,10 +197,11 @@ class Detector {
|
||||
*/
|
||||
void setFlipRows(bool value, Positions pos = {});
|
||||
|
||||
/** [Eiger][Mythen3][Gotthard1] via stop server **/
|
||||
/** [Eiger][Mythen3][Gotthard1][Gotthard2] via stop server **/
|
||||
Result<bool> getMaster(Positions pos = {}) const;
|
||||
|
||||
/** [Eiger] Set half module to master and the others to slaves */
|
||||
/** [Eiger][Gotthard2] Set (half) module to master and the other(s) to
|
||||
* slaves */
|
||||
void setMaster(bool value, int pos);
|
||||
|
||||
Result<bool> isVirtualDetectorServer(Positions pos = {}) const;
|
||||
|
@ -1298,9 +1298,9 @@ class CmdProxy {
|
||||
|
||||
INTEGER_COMMAND_VEC_ID_GET(
|
||||
master, getMaster, setMaster, StringTo<int>,
|
||||
"[0, 1]\n\t[Eiger] Sets half module to master and "
|
||||
"others to slaves.\n\t[Gotthard][Gotthard2][Mythen3][Eiger] "
|
||||
"Gets if the current module/ half module is master.");
|
||||
"[0, 1]\n\t[Eiger][Gotthard2] Sets (half) module to master and "
|
||||
"other(s) to slaves.\n\t[Gotthard][Gotthard2][Mythen3][Eiger] "
|
||||
"Gets if the current (half) module is master.");
|
||||
|
||||
/* acquisition parameters */
|
||||
|
||||
|
@ -586,7 +586,7 @@ TEST_CASE("master", "[.cmd]") {
|
||||
if (det_type == defs::EIGER || det_type == defs::MYTHEN3 ||
|
||||
det_type == defs::GOTTHARD || det_type == defs::GOTTHARD2) {
|
||||
REQUIRE_NOTHROW(proxy.Call("master", {}, -1, GET));
|
||||
if (det_type == defs::EIGER) {
|
||||
if (det_type == defs::EIGER || det_type == defs::GOTTHARD2) {
|
||||
// get previous master
|
||||
int prevMaster = 0;
|
||||
{
|
||||
|
Reference in New Issue
Block a user