1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 20:10:11 +03:00

Copter: add new setting for final landing vspeed instead of being hardcoded to 25% of set landing vspeed (#1235)

This commit is contained in:
Michel Pastor 2021-04-19 23:43:07 +02:00 committed by GitHub
parent 57732b74ce
commit f7c7ad382f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 10 deletions

View file

@ -2536,8 +2536,11 @@
"rthHomeAltitudeHelp": {
"message": "Used when not landing at the home point. Upon arriving at home, the plane will loiter and change altitude to the RTH Home Altitude. Default is 0, which is feature disabled."
},
"landDescentRate": {
"message": "Landing vertical speed [cm/s]"
"landMinAltVspd": {
"message": "Vertical descent velocity under min. vertical landing speed altitude [cm/s]"
},
"landMaxAltVspd": {
"message": "Vertical descent velocity above slowdown altitude [cm/s]"
},
"landSlowdownMinAlt": {
"message": "Min. vertical landing speed at altitude [cm]"

View file

@ -1327,10 +1327,11 @@ var mspHelper = (function (gui) {
RTH_AND_LAND_CONFIG.rthAltControlMode = data.getUint8(6);
RTH_AND_LAND_CONFIG.rthAbortThreshold = data.getUint16(7, true);
RTH_AND_LAND_CONFIG.rthAltitude = data.getUint16(9, true);
RTH_AND_LAND_CONFIG.landDescentRate = data.getUint16(11, true);
RTH_AND_LAND_CONFIG.landSlowdownMinAlt = data.getUint16(13, true);
RTH_AND_LAND_CONFIG.landSlowdownMaxAlt = data.getUint16(15, true);
RTH_AND_LAND_CONFIG.emergencyDescentRate = data.getUint16(17, true);
RTH_AND_LAND_CONFIG.landMinAltVspd = data.getUint16(11, true);
RTH_AND_LAND_CONFIG.landMaxAltVspd = data.getUint16(13, true);
RTH_AND_LAND_CONFIG.landSlowdownMinAlt = data.getUint16(15, true);
RTH_AND_LAND_CONFIG.landSlowdownMaxAlt = data.getUint16(17, true);
RTH_AND_LAND_CONFIG.emergencyDescentRate = data.getUint16(19, true);
break;
case MSPCodes.MSP_SET_RTH_AND_LAND_CONFIG:
@ -2007,8 +2008,11 @@ var mspHelper = (function (gui) {
buffer.push(lowByte(RTH_AND_LAND_CONFIG.rthAltitude));
buffer.push(highByte(RTH_AND_LAND_CONFIG.rthAltitude));
buffer.push(lowByte(RTH_AND_LAND_CONFIG.landDescentRate));
buffer.push(highByte(RTH_AND_LAND_CONFIG.landDescentRate));
buffer.push(lowByte(RTH_AND_LAND_CONFIG.landMinAltVspd));
buffer.push(highByte(RTH_AND_LAND_CONFIG.landMinAltVspd));
buffer.push(lowByte(RTH_AND_LAND_CONFIG.landMaxAltVspd));
buffer.push(highByte(RTH_AND_LAND_CONFIG.landMaxAltVspd));
buffer.push(lowByte(RTH_AND_LAND_CONFIG.landSlowdownMinAlt));
buffer.push(highByte(RTH_AND_LAND_CONFIG.landSlowdownMinAlt));

View file

@ -363,8 +363,13 @@
</div>
<div class="number">
<input id="landDescentRate" type="number" data-setting="nav_landing_speed" data-setting-multiplier="1" step="1" min="100" max="2000" />
<label for="landDescentRate"><span data-i18n="landDescentRate"></span></label>
<input id="landMinAltVspd" type="number" data-setting="nav_landing_minalt_vspd" data-setting-multiplier="1" step="1" min="50" max="500" />
<label for="landMinAltVspd"><span data-i18n="landMinAltVspd"></span></label>
</div>
<div class="number">
<input id="landMaxAltVspd" type="number" data-setting="nav_landing_maxalt_vspd" data-setting-multiplier="1" step="1" min="100" max="2000" />
<label for="landMaxAltVspd"><span data-i18n="landMaxAltVspd"></span></label>
</div>
<div class="number">