PcloudStimProd: ambienceHighVal is now a negtrin threshold

This commit is contained in:
2025-11-26 03:39:39 -04:00
parent e5782b0af7
commit 49191b3a15
2 changed files with 7 additions and 16 deletions
@@ -308,14 +308,16 @@ std::cout << __func__ << ": $$$$$$$ Created PcloudIntensityStimulusBuffer" << st
}
else if (qualeIfaceApi == "pcloudAmbience")
{
// Parse ambienceHighVal from stimBuffApiParams
// Parse ambienceHighVal from qualeIfaceApiParams (temporary, undocumented)
const std::vector<std::string> ambienceHighValParamNames = {
"high-value",
"high-val"
"negtrin-intolerable-threshold",
"negtrin-intolerable",
"intolerable-threshold",
"intolerable"
};
int ambienceHighValInt = device::DeviceAttachmentSpec
::parseOptionalParamAsIntWithSynonyms(
deviceAttachmentSpec->stimBuffApiParams,
deviceAttachmentSpec->qualeIfaceApiParams,
ambienceHighValParamNames, 116);
uint32_t ambienceHighVal = static_cast<uint32_t>(ambienceHighValInt);