Commit 366305f9 authored by Gus Grubba's avatar Gus Grubba

Merge branch 'master' of https://github.com/mavlink/qgroundcontrol into qgc4

parents 0736891f 7a56aaea
......@@ -753,6 +753,19 @@
<output name="MAIN7">Pusher motor</output>
<output name="MAIN8">Pusher reverse channel</output>
</airframe>
<airframe id="13014" maintainer="Silvan Fuhrer &lt;silvan@auterion.com&gt;" name="BabyShark VTOL">
<class>VTOL</class>
<maintainer>Silvan Fuhrer &lt;silvan@auterion.com&gt;</maintainer>
<type>Standard VTOL</type>
<output name="MAIN1">Ailerons</output>
<output name="MAIN2">A-tail left</output>
<output name="MAIN3">Pusher motor</output>
<output name="MAIN4">A-tail right</output>
<output name="MAIN5">motor 1</output>
<output name="MAIN6">motor 2</output>
<output name="MAIN7">motor 3</output>
<output name="MAIN8">motor 4</output>
</airframe>
</airframe_group>
<airframe_group image="VTOLDuoRotorTailSitter" name="VTOL Duo Tailsitter">
<airframe id="13001" maintainer="Roman Bapst &lt;roman@px4.io&gt;" name="Caipiroshka Duo Tailsitter">
......
......@@ -2311,13 +2311,10 @@ This is the ratio of static pressure error to dynamic pressure generated by a wi
<decimal>1</decimal>
<increment>0.5</increment>
</parameter>
<parameter default="1" name="FW_LND_EARLYCFG" type="INT32">
<parameter default="0" name="FW_LND_EARLYCFG" type="INT32">
<short_desc>Early landing configuration deployment</short_desc>
<long_desc>When set to 0/disabled, the landing configuration (flaps, landing airspeed, etc.) is only activated on the final approach to landing. When set to 1/enabled, it is already activated when entering the final loiter-down (loiter-to-alt) WP before the landing approach. This shifts the (often large) altitude and airspeed errors caused by the configuration change away from the ground such that these are not so critical. It also gives the controller enough time to adapt to the new configuration such that the landing approach starts with a cleaner initial state.</long_desc>
<values>
<value code="0">Disable early land configuration deployment</value>
<value code="1">Enable early land configuration deployment</value>
</values>
<long_desc>When disabled, the landing configuration (flaps, landing airspeed, etc.) is only activated on the final approach to landing. When enabled, it is already activated when entering the final loiter-down (loiter-to-alt) waypoint before the landing approach. This shifts the (often large) altitude and airspeed errors caused by the configuration change away from the ground such that these are not so critical. It also gives the controller enough time to adapt to the new configuration such that the landing approach starts with a cleaner initial state.</long_desc>
<boolean />
</parameter>
<parameter default="3.0" name="FW_LND_FLALT" type="FLOAT">
<short_desc>Landing flare altitude (relative to landing altitude)</short_desc>
......
......@@ -293,7 +293,7 @@ void StructureScanComplexItem::appendMissionItems(QList<MissionItem*>& items, QO
{
int seqNum = _sequenceNumber;
bool startFromTop = _startFromTopFact.rawValue().toBool();
double startAltitude = _scanBottomAltFact.rawValue().toDouble() + (startFromTop ? _structureHeightFact.rawValue().toDouble() : 0);
double startAltitude = (startFromTop ? _structureHeightFact.rawValue().toDouble() : _scanBottomAltFact.rawValue().toDouble());
MissionItem* item = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment