How to turn on the QLAND landing mode using the switch on the remote control, I do not want to use FLTMODE_CH for this, I need a separate switch
I don’t see that as an Aux function. Perhaps with a script calling MAV_CMD_NAV_VTOL_LAND ?
If you aren’t using all 6 flight modes on the flight mode channel, then you could set the desired switch on your radio to override the flight mode channel to the position you’ve set to force mode into QLAND.
1 Like
I solved the problem using LUA
local rcFlag = false
local prevMode
local ch = 6
function update()
if(rc:get_pwm(ch) > 1500 and not rcFlag) then
rcFlag = true
prevMode = vehicle:get_mode()
vehicle:set_mode(20)
end
if(rc:get_pwm(ch) < 1500 and rcFlag) then
rcFlag = false
vehicle:set_mode(prevMode)
end
return update, 50
end
return update()
This seems like an oversight or missing feature. @tridge?