65 if (
_vehicle->parameterManager()->parametersReady()) {
100 bool showActuatorsPage =
false;
102 qCDebug(PX4AutoPilotPluginLog) <<
"Actuators page will NOT show because:";
103 qCDebug(PX4AutoPilotPluginLog) <<
" - Vehicle did not provide actuators metadata via component information";
104 }
else if (!
_vehicle->actuators()->showUi()) {
105 qCDebug(PX4AutoPilotPluginLog) <<
"Actuators page will NOT show because:";
106 if (!
_vehicle->actuators()->isInitialized()) {
107 qCDebug(PX4AutoPilotPluginLog) <<
" - Actuators initialization failed:" <<
_vehicle->actuators()->initializationError();
109 qCDebug(PX4AutoPilotPluginLog) <<
" - Condition 'show-ui-if' evaluated to false";
110 qCDebug(PX4AutoPilotPluginLog) <<
" (see 'Evaluating [show-ui-if]' log above for details)";
113 showActuatorsPage =
true;
114 qCDebug(PX4AutoPilotPluginLog) <<
"Actuators page WILL show (all conditions passed)";
117 if (showActuatorsPage) {
122 qCDebug(PX4AutoPilotPluginLog) <<
" → Using legacy Motor page instead";
158 if(
_vehicle->parameterManager()->parameterExists(
_vehicle->compId(),
"SYS_VEHICLE_RESP")) {
165 if(
_vehicle->parameterManager()->parameterExists(MAV_COMP_ID_UDP_BRIDGE,
"SW_VER")) {
176 qWarning() <<
"Call to vehicleCompenents prior to parametersReady";
179 if(
_vehicle->parameterManager()->parameterExists(
_vehicle->compId(),
"SLNK_RADIO_CHAN")) {
185 qWarning() <<
"Internal error";
188 std::sort(_components.begin(), _components.end(), [](
const QVariant &a,
const QVariant &b) {
189 return a.value<VehicleComponent*>()->name().toLower() < b.value<VehicleComponent*>()->name().toLower();
210 bool requiresAirframeCheck =
false;
212 if (qobject_cast<const FlightModesComponent*>(component)) {
213 if (
_vehicle->parameterManager()->getParameter(-1,
"COM_RC_IN_MODE")->rawValue().toInt() == 1) {
223 }
else if (qobject_cast<const PX4RadioComponent*>(component)) {
224 if (
_vehicle->parameterManager()->getParameter(-1,
"COM_RC_IN_MODE")->rawValue().toInt() != 1) {
227 }
else if (qobject_cast<const PX4TuningComponent*>(component)) {
228 requiresAirframeCheck =
true;
229 }
else if (qobject_cast<const PX4EscComponent*>(component) || qobject_cast<const PX4BatteryComponent*>(component)) {
230 requiresAirframeCheck =
true;
231 }
else if (qobject_cast<const PX4ReturnLandComponent*>(component) ||
232 qobject_cast<const PX4CollisionComponent*>(component)) {
233 requiresAirframeCheck =
true;
234 }
else if (qobject_cast<const SensorsComponent*>(component)) {
235 requiresAirframeCheck =
true;
238 if (requiresAirframeCheck) {