|
static const iocshArg *const pimegaDetectorConfigArgs[] = { |
|
&pimegaDetectorConfigArg0, &pimegaDetectorConfigArg1, |
|
&pimegaDetectorConfigArg2, &pimegaDetectorConfigArg3, |
|
&pimegaDetectorConfigArg4, &pimegaDetectorConfigArg5, |
|
&pimegaDetectorConfigArg6, &pimegaDetectorConfigArg7, |
|
&pimegaDetectorConfigArg8, &pimegaDetectorConfigArg9, |
|
&pimegaDetectorConfigArg10, &pimegaDetectorConfigArg11, |
|
&pimegaDetectorConfigArg12, &pimegaDetectorConfigArg13, |
|
&pimegaDetectorConfigArg14, &pimegaDetectorConfigArg15, |
|
&pimegaDetectorConfigArg16, &pimegaDetectorConfigArg17, |
|
&pimegaDetectorConfigArg18, &pimegaDetectorConfigArg19, |
|
&pimegaDetectorConfigArg20, &pimegaDetectorConfigArg21, |
|
&pimegaDetectorConfigArg22, &pimegaDetectorConfigArg23, |
|
&pimegaDetectorConfigArg24}; |
|
static const iocshFuncDef configpimegaDetector = {"pimegaDetectorConfig", 25, |
|
pimegaDetectorConfigArgs}; |
|
|
|
static void configpimegaDetectorCallFunc(const iocshArgBuf *args) { |
|
pimegaDetectorConfig( |
|
args[0].sval, args[1].sval, args[2].sval, args[3].sval, args[4].sval, |
|
args[5].sval, args[6].sval, args[7].sval, args[8].sval, args[9].sval, |
|
args[10].sval, args[11].ival, args[12].ival, args[13].ival, args[14].ival, |
|
args[15].ival, args[16].ival, args[17].ival, args[18].ival, args[19].ival, |
|
args[20].ival, args[21].ival, args[22].ival, args[23].ival, args[24].ival, |
|
args[25].ival, args[26].ival); |
|
} |
The
numModulesXandnumModulesYparameters frompimegaDetectorConfigaren't configured in the iocsh command definition, so they aren't passed to the registered function.ADPimega/pimegaApp/src/pimegaDetector.cpp
Lines 1240 to 1260 in 39b4354
ADPimega/pimegaApp/src/pimegaDetector.cpp
Lines 2759 to 2784 in 39b4354
While the command can be fixed, we'd suggest having information about the geometric organization of detectors supplied by
pimega-api, instead of having to pass them to the driver configuration function.