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) {
33 const int channel =
_vehicle->parameterManager()->getParameter(-1, mapParam)->rawValue().toInt();
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)
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
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 ...
static constexpr int defaultComponentId
VehicleComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)
void setupCompleteChanged()