9 for (
const QString &mapParam : _mapParams) {
14 _connectSetupTriggers();
24 for (
int i = 0; i < _mapParams.count(); i++) {
26 if (mapValues[i] <= 0) {
32 for (
const QString &mapParam : _mapParams) {
48void APMRadioComponent::_connectSetupTriggers()
50 for (
Fact *fact : _triggerFacts) {
51 (void) disconnect(fact, &
Fact::valueChanged,
this, &APMRadioComponent::_triggerChanged);
53 _triggerFacts.clear();
56 for (
const QString &mapParam : _mapParams) {
60 _triggerFacts << fact;
64 _triggerFacts << fact;
68 _triggerFacts << fact;
73void APMRadioComponent::_triggerChanged()
78 _connectSetupTriggers();
bool setupComplete() const final
APMRadioComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
A Fact is used to hold a single value within the system.
void valueChanged(const QVariant &value)
This signal is only meant for use by the QT property system. It should not be connected to by client ...
Fact * getParameter(int componentId, const QString ¶mName)
static constexpr int defaultComponentId
void setupCompleteChanged()
ParameterManager * parameterManager()