Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added simple templates and matching Lua scripts that load Lua wizard #53

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions sdcard/horus/TEMPLATES/WIZARD/Glider.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---- #########################################################################
---- # #
---- # Copyright (C) EdgeTX #
-----# #
---- # License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html #
---- # #
---- # This program is free software; you can redistribute it and/or modify #
---- # it under the terms of the GNU General Public License version 2 as #
---- # published by the Free Software Foundation. #
---- # #
---- # This program is distributed in the hope that it will be useful #
---- # but WITHOUT ANY WARRANTY; without even the implied warranty of #
---- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
---- # GNU General Public License for more details. #
---- # #
---- #########################################################################

local function run(event)
chdir("/SCRIPTS/WIZARD")
return "glider.lua"
end

return { run = run }
1 change: 1 addition & 0 deletions sdcard/horus/TEMPLATES/WIZARD/Glider.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Create a simple sailplane with optional motor assist using the Lua Wizard to guide you.
178 changes: 178 additions & 0 deletions sdcard/horus/TEMPLATES/WIZARD/Glider.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
header:
name: "Glider"
bitmap: ""
telemetryProtocol: 0
thrTrim: 0
noGlobalFunctions: 0
displayTrims: 0
ignoreSensorIds: 0
trimInc: 0
disableThrottleWarning: 0
displayChecklist: 0
extendedLimits: 0
extendedTrims: 0
throttleReversed: 0
enableCustomThrottleWarning: 0
customThrottleWarningPosition: 0
beepANACenter: 0
mixData:
-
weight: 100
destCh: 0
srcRaw: I0
carryTrim: 0
mixWarn: 0
mltpx: ADD
offset: 0
swtch: "NONE"
flightModes: 000000000
delayUp: 0
delayDown: 0
speedUp: 0
speedDown: 0
name: ""
-
weight: 100
destCh: 1
srcRaw: I1
carryTrim: 0
mixWarn: 0
mltpx: ADD
offset: 0
swtch: "NONE"
flightModes: 000000000
delayUp: 0
delayDown: 0
speedUp: 0
speedDown: 0
name: ""
-
weight: 100
destCh: 2
srcRaw: I2
carryTrim: 0
mixWarn: 0
mltpx: ADD
offset: 0
swtch: "NONE"
flightModes: 000000000
delayUp: 0
delayDown: 0
speedUp: 0
speedDown: 0
name: ""
-
weight: 100
destCh: 3
srcRaw: I3
carryTrim: 0
mixWarn: 0
mltpx: ADD
offset: 0
swtch: "NONE"
flightModes: 000000000
delayUp: 0
delayDown: 0
speedUp: 0
speedDown: 0
name: ""
expoData:
-
mode: 3
scale: 0
srcRaw: Rud
carryTrim: 0
chn: 0
swtch: "NONE"
flightModes: 000000000
weight: 100
name: ""
offset: 0
curve:
type: 1
value: 0
-
mode: 3
scale: 0
srcRaw: Ele
carryTrim: 0
chn: 1
swtch: "NONE"
flightModes: 000000000
weight: 100
name: ""
offset: 0
curve:
type: 1
value: 0
-
mode: 3
scale: 0
srcRaw: Thr
carryTrim: 0
chn: 2
swtch: "NONE"
flightModes: 000000000
weight: 100
name: ""
offset: 0
curve:
type: 1
value: 0
-
mode: 3
scale: 0
srcRaw: Ail
carryTrim: 0
chn: 3
swtch: "NONE"
flightModes: 000000000
weight: 100
name: ""
offset: 0
curve:
type: 1
value: 0
thrTraceSrc: Thr
switchWarningState: AuBuCuDuEuFuGuHu
rssiSource: none
thrTrimSw: 0
potsWarnMode: WARN_OFF
jitterFilter: GLOBAL
inputNames:
0:
val: "Rud"
1:
val: "Ele"
2:
val: "Thr"
3:
val: "Ail"
potsWarnEnabled: 0
screenData:
0:
LayoutId: "Layout2P1"
layoutData:
options:
0:
type: Bool
value:
boolValue: 1
1:
type: Bool
value:
boolValue: 1
2:
type: Bool
value:
boolValue: 1
3:
type: Bool
value:
boolValue: 1
4:
type: Bool
value:
boolValue: 0
view: 0
modelRegistrationID: ""
23 changes: 23 additions & 0 deletions sdcard/horus/TEMPLATES/WIZARD/Multirotor.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---- #########################################################################
---- # #
---- # Copyright (C) EdgeTX #
-----# #
---- # License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html #
---- # #
---- # This program is free software; you can redistribute it and/or modify #
---- # it under the terms of the GNU General Public License version 2 as #
---- # published by the Free Software Foundation. #
---- # #
---- # This program is distributed in the hope that it will be useful #
---- # but WITHOUT ANY WARRANTY; without even the implied warranty of #
---- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
---- # GNU General Public License for more details. #
---- # #
---- #########################################################################

local function run(event)
chdir("/SCRIPTS/WIZARD")
return "multirotor.lua"
end

return { run = run }
1 change: 1 addition & 0 deletions sdcard/horus/TEMPLATES/WIZARD/Multirotor.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Create a simple multirotor drone using the Lua Wizard to guide you.
Loading