Lines Matching +full:auto +full:- +full:detects

8 //      http://www.apache.org/licenses/LICENSE-2.0
89 auto mapper =
100 auto resp = bus.call(mapper);
118 for (const auto& objectPair : respData)
121 for (const auto& ownerPair : objectPair.second)
124 auto getProfile =
131 auto resp = bus.call(getProfile);
145 for (const auto& profile : ret)
179 auto find = data.find(skip);
193 for (auto& d : data)
196 for (auto& second : d.second)
209 timer->expires_after(std::chrono::seconds(2));
210 timer->async_wait([](const boost::system::error_code ec) {
240 for (const auto& interface : interfaces)
261 * @param[in] base - the PID configuration map, keys are the attributes and
263 * @param attributeName - the name of the attribute
271 auto search = base.find(attributeName);
276 return search->second;
283 auto findAttributeName = zone.find(attributeName);
323 auto findFailSafe = base.find("FailSafePercent");
347 // single element, if it detects that SetPointOffset is in use.
395 auto findCheckHysterFlag = base.find("CheckHysteresisWithSetpoint");
396 auto findNeg = base.find("NegativeHysteresis");
397 auto findPos = base.find("PositiveHysteresis");
398 auto findDerivative = base.find("DCoefficient");
402 checkHysterWithSetpt = std::get<bool>(findCheckHysterFlag->second);
407 std::visit(VariantToDoubleVisitor(), findNeg->second);
412 std::visit(VariantToDoubleVisitor(), findPos->second);
417 std::visit(VariantToDoubleVisitor(), findDerivative->second);
437 auto mapper =
452 auto resp = bus.call(mapper);
470 for (const auto& objectPair : respData)
472 for (const auto& ownerPair : objectPair.second)
474 auto& owner = owners[ownerPair.first];
502 for (const auto& owner : owners)
509 auto endpoint = bus.new_method_call(
515 auto response = bus.call(endpoint);
525 for (auto& pathPair : configuration)
543 for (auto pathIt = configurations.begin();
546 for (auto confIt = pathIt->second.begin();
547 confIt != pathIt->second.end();)
549 auto profilesFind = confIt->second.find("Profiles");
550 if (profilesFind == confIt->second.end())
555 auto profiles =
556 std::get<std::vector<std::string>>(profilesFind->second);
580 confIt = pathIt->second.erase(confIt);
583 if (pathIt->second.empty())
594 // On D-Bus, although not necessary,
599 // If not present, or not unique, auto-assign index,
600 // using 0-based numbering, ensuring uniqueness.
602 for (const auto& configuration : configurations)
604 auto findZone =
608 const auto& zone = findZone->second;
612 auto findZoneIndex = zone.find("ZoneIndex");
618 auto ptrZoneIndex = std::get_if<double>(&(findZoneIndex->second));
624 auto desiredIndex = static_cast<int64_t>(*ptrZoneIndex);
625 auto grantedIndex = setZoneIndex(name, foundZones, desiredIndex);
631 for (const auto& configuration : configurations)
633 auto findZone =
637 const auto& zone = findZone->second;
641 auto index = getZoneIndex(name, foundZones);
643 auto& details = zoneDetailsConfig[index];
649 auto findFailSafe = zone.find("FailSafePercent");
663 auto findAccSetPoint = zone.find("AccumulateSetPoint");
666 accumulateSetPoint = std::get<bool>(findAccSetPoint->second);
670 auto findBase = configuration.second.find(pidConfigurationInterface);
674 const auto& base =
684 auto index = getZoneIndex(zone, foundZones);
693 auto findMissingAcceptable = base.find("MissingIsAcceptable");
698 findMissingAcceptable->second);
709 auto findUnavailableAsFailed =
714 std::get<bool>(findUnavailableAsFailed->second);
727 * Mapping can be many-to-one since an element of Inputs can be
738 auto found =
756 << "Pid controller: Missing a missing-unacceptable sensor from D-Bus "
760 auto& config = sensorConfig[inputSensorName];
775 << "Pid controller: Missing a missing-acceptable sensor from D-Bus "
802 // Setting timeout to 0 is intentional, as D-Bus passive
807 // All non-fan PID classes should be initialized this way.
815 auto& config = sensorConfig[inputSensorName];
932 auto& fanConfig = sensorConfig[fanPwmIndex];
936 // todo: un-hardcode this if there are fans with
954 auto findSetpointOffset = base.find("SetPointOffset");
958 std::get<std::string>(findSetpointOffset->second);
970 auto findTempToMargin = base.find("TempToMargin");
974 std::get<std::vector<double>>(findTempToMargin->second);
989 // we have to split up the inputs, as in practice t-control
1002 auto findStepwise =
1006 const auto& base = findStepwise->second;
1013 auto index = getZoneIndex(zone, foundZones);
1023 auto findMissingAcceptable = base.find("MissingIsAcceptable");
1028 findMissingAcceptable->second);
1032 auto findUnavailableAsFailed =
1037 std::get<bool>(findUnavailableAsFailed->second);
1061 << "Stepwise controller: Missing a missing-unacceptable sensor from D-Bus "
1067 auto& config = sensorConfig[shortName];
1073 // todo: maybe un-hardcode this if we run into
1085 << "Stepwise controller: Missing a missing-acceptable sensor from D-Bus "
1093 for (const auto& sensorPathIfacePair :
1100 auto& config = sensorConfig[shortName];
1105 // todo: maybe un-hardcode this if we run into
1140 for (const auto& sensorPathIfacePair : sensorPathIfacePairs)
1153 auto findTempToMargin = base.find("TempToMargin");
1157 std::get<std::vector<double>>(findTempToMargin->second);
1170 auto findPosHyst = base.find("PositiveHysteresis");
1171 auto findNegHyst = base.find("NegativeHysteresis");
1175 VariantToDoubleVisitor(), findPosHyst->second);
1180 VariantToDoubleVisitor(), findNegHyst->second);