You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated Ch naming across all display, and updated Docs (#786)
* #751 DSM Enhancements
#751 DSM Forward Programming Enhancements (New GUI, etc)
* Make both work on EdgeTx and OpenTX
* #751 Turn OFF simulation by default
Distribution code with RX simulation OFF
Simulation should be only for Development
* #751 Update Readme Documentation
Updated the Readme.txt documentation
and removed compiled luac file that was check in by mistake
* #751 Fix problems With Reset RX
1. Fix problem when trying to Factory Reset. Enter Bind Mode. Save backup, Restore Backup
2. Found a way to advance on the Gyro initial Setup menus.. a bit of a hack, but works.
3. Handle RX resets properly. It needed after initial setup
* #751 Cosmetic and Show Orientation Images
#751
1. Fix problems when text contradictions between Menu/Line Headers and List Values
2. Show Images of RX orientations
3. Able to Hack getting into Initial Setup and other menus who was failing before
4. Custumize the way Flight Mode reports the Value on Screen
* #751 add check for required libraries
Add check that the required files in DSMLIB exist
* #751
Write documentation about the protocol so that we don't forget later what we know, and enable others to understand the logs and maybe help solve problems.
* #766
Change the way to detect that the files exist. now works on both ETX and OTX
* #766 Strange Flickering in OTX
Strange Flickering happening on OTX. Refreshing the screen on every cycle fixed the problem
* #766 Change way of dectecting EdgeTX
Change way of detecting OTX in multiple versions: OTX 2.3.14 and 2.3.15
* #766 make editable Gain Values
Gains and other settings should be editable even when they are VALUE_NOCHANGING. Flight Mode is an exception that is handled properly. Right align numbers.
* #766 More enhacements
Added AR630
Make numbers right justified
Cleanup some log messages and line types.
Updated DSM FWD prog documentation
* #751 more cosmetic things
1. Added AR10360T,
2. Simplify way to configured the hack for more receivers.
3. Change some texts on menus to march spektrum
4. Background color in Spektrum theme to match
* #751 A few final changes
1. Update channel names to include channel number. i.e: Ch5 (Gear)
2, Fix flight mode display for Heli Receiver
3. i think the unknown lines are to request info about the TX settings
* #751
1. Added Warning Screen
2. Correct handling of Unknown lines in Gyro Settings->Initial Setup
* #751
New v0.51 version.
- Added new menus to configure Model/Wing type. Without it, the initial setup will not work properly.
* #751 More fixes on mixers and servo reverse
-- Fix problem reversing servos when using vtail/delta mix
-- Properly detect ch order of multimodule
* #751 Updated channel naming and docs
Updated readme documentation
Consistent naming of Ch across the code.
Co-authored-by: pascallanger <pascal_langer@yahoo.fr>
Copy file name to clipboardExpand all lines: Lua_scripts/DSMLIB/readme.md
+46-28Lines changed: 46 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -1,47 +1,66 @@
1
1
# Credits
2
2
Code is based on the code/work by: Pascal Langer (Author of the Multi-Module)
3
+
Rewrite/Enhancements by: Francisco Arzu
3
4
4
-
Rewrite/Enhancements By: Francisco Arzu
5
+
Thanks to many other people who volunteer to test it.
5
6
6
-
# Introduction
7
+
# Introduction (v0.52)
7
8
8
-
This script library is a rewrite of the original DSM forward programming Lua
9
-
Script. The goal was to make it easier to understand, mantain, and to
10
-
separate the GUI from the DSM Forward programming engine/logic.
11
-
In this way, GUIs can evolve independent. Color/Touch Gui, Text only GUI, etc.
9
+
This script library enhace the original DSM Forward Programming tool. DSM Forward Programming is needed to setup many of
10
+
the new Spektrum Receivers with Gyro AS3X/SAFE features. For the Gyro (/Safe) to correct the plane in flight, it needs to move the right surfaces, the RX needs to know the
11
+
configuration of the plane (Wing Type, Tail Type, Mixers, Servo Assigments, Servo Reverse). That info tells the RX where the aileron(s) are (one of two), where the elevator(s) are (one or two), V-Tail, Delta Wing, etc.
12
12
13
-
Changes and fixes
14
-
1. Menus to be able to configure Plane in a similar way as Spektrum Radio
13
+
Since EdgeTx/OpenTx don't have equivalent setup that is persisted/stored in the radio, we had to create our own version. This info is stored inside the `/MODELS/DSMDATA` directory/folder (needs to be created by hand).
14
+
15
+
During `"Gyro Settings->initial setup"`, the RX asks the TX for model information behind the scenes. After setup, `"Gyro Settings->System Tools-> Relearn Servo Settings"` request the TX configuration and store it in the RX.
16
+
17
+
# Deployment
18
+
Make sure to manually create `/MODELS/DSMDATA` . The script will complain at startup.
19
+
20
+
/SCRIPTS/TOOLS/DsmFwdPrg_05_BW.lua -- black/white text only radios
/SCRIPTS/TOOLS/DSMLIB/ -- (ALL CAPITALS) Libraries ane extra files
23
+
/SCRIPTS/TOOLS/DSMLIB/DsmFwPrgLib.lua -- DSM Protocol Message and Menu engine
24
+
/SCRIPTS/TOOLS/DSMLIB/DsmFwPrgSIMLib.lua -- Simulation of AR631, FC6250HX
25
+
/SCRIPTS/TOOLS/DSMLIB/SetupLib.lua -- Model Setup Screns
26
+
/SCRIPTS/TOOLS/DSMLIB/img --Images for RX orientations
27
+
28
+
Other Directories
29
+
30
+
/MODELS/DSMDATA --(ALL CAPITALS) Data of model config (Wing Type, Servo Assigments)
31
+
/LOGS/dsm_log.txt --Readable log of the last RX/TX session, usefull for debuging problems
32
+
33
+
When upgrading from a previous version of this tool, delete your /SCRIPTS/TOOLS/DSMLIB before copying the new one (if you customized your images, inside "DSMLIB/img" do a backup first)
34
+
35
+
# Common Questions
36
+
1.`RX not accepting channels greater Ch6 for Flight-mode o Gains:` The RX corrects your channel to ch5 or ch6. This means that the RX is not detecting the upper channles from the TX. You need to exersise (move the switch) so that the RX detects it. Put the Channel Field on edit (changing) mode, change it to Ch7 (or any other), flip the switch for Ch7 3 times, now confim the edit. The RX now will not reject it. All Spektrum RX are 20 channels internally, even if it only have 6 external Ch/Ports to connect servos.
37
+
38
+
2.`Why Ch1 says Ch1 (TX:Ch3/Thr)?`:
39
+
Radios with Multi-Module are usually configured to work the standard AETR convention. Spektrum uses TAER. The multi-module does the conversion when transmiting the signals. So `Spektrum Ch1 (Throttle)` really comes from the `TX Ch3`. We show both information (+name from the TX output). If your multi-module/radio is setup as TAER, the script will not do the re-arrangement.
40
+
41
+
---
42
+
---
43
+
44
+
# Changes and fixes
45
+
1. Menus to be able to configure Plane in a similar way as Spektrum Radio (v0.52)
15
46
1. Make "Gyro Settings"->"Initial Setup" works (Tested on AR631,AR637xx with PLANE type of arcraft)
16
47
2. Properly reset and restart after initial configuration and SAFE changes.
17
48
3. Write Log of the conversation between RX/TX. To be use for debugging when some reports a problem.
18
49
4. Provide a simulation of RX to do GUI development in Companion, and undestand patterns of how the data is organized.
19
50
20
51
# Tested RXs
21
-
- AR631/AR637xx Coded a hack to be able to make `Initial Setup` to work
22
-
- FC6250HX (Helicopter)
23
-
24
-
Most RX will run without problems, it could be that some others receivers will need to apply the same hack as the AR631 for some specific menus to work.
25
-
Since is RX and Menu specific, we cannot create a general hack.
52
+
- AR631/AR637xx
53
+
- FC6250HX (Blade 230S V2 Helicopter)
54
+
- AR636 (Blade 230S V1 Heli firmaware 4.40)
26
55
27
-
Please report of you have test it with other receivers to update the documentation.
56
+
Please report of you have test it with other receivers to update the documentation. Code should work up to 10 channels for the main surfaces (Ail/Ele/etc). All Spektrum RX are internally 20 channels, so you can use Ch7 for Flight Mode even if your RX is only 6 channels (See common Questions)
28
57
29
58
# Flight mode/Gain channels
30
59
31
60
I ran into a case where trying to set Aux2 or Aux3 for flight mode, but the RX was correcting it to Aux1.. the RX only was allowing Gear or Aux1 (AR631/AR637).
32
61
This is because the RX don't know that we are using more than 6 channels. To make the RX aware that there are other channels, while edditing the channel, you have to toggle the switch to excersist the channel (3 times), and now the RX will recognize it.
33
62
34
-
# Deployment
35
63
36
-
/SCRIPTS/TOOLS/DsmFwdPrg_05_BW.lua -- black/white text only radios
/SCRIPTS/TOOLS/DSMLIB/ -- (ALL CAPITALS) Libraries ane extra files
39
-
/SCRIPTS/TOOLS/DSMLIB/DsmFwPrgLib.lua -- DSM Protocol Message and Menu engine
40
-
/SCRIPTS/TOOLS/DSMLIB/DsmFwPrgSIMLib.lua -- Simulation of AR631, FC6250HX
41
-
/SCRIPTS/TOOLS/DSMLIB/SetupLib.lua -- Model Setup Screns
42
-
/SCRIPTS/TOOLS/DSMLIB/img --Images for RX orientations
43
-
/SCRIPTS/TOOLS/DSMLIB/data --Data of model config (Wing Type, Servo Assigments)
44
-
/LOGS/dsm_log.txt --Readable log of the last RX/TX session, usefull for debuging new RX
45
64
46
65
# Messages Displayed in the GUI
47
66
@@ -131,7 +150,7 @@ If you go to the logs, you can see that the RX was correcting the value:
131
150
- Properly detect Moltimodule Ch settings AETR
132
151
---
133
152
134
-
# Version 0.51
153
+
# Version 0.51 (voluteer testing version, not for production)
135
154
- New Screens to Configure Model (Wing Type/Tail Tail, etc)
136
155
- Finally got understanding that the previous unknown 0x05 lines are to send Model/Servo data to RX.
137
156
- Fix use of AR636B (Firmare version 4.40.0 for Blade 230 heli, is the only one with Forward Programing)
@@ -165,10 +184,9 @@ If you go to the logs, you can see that the RX was correcting the value:
165
184
1.**Incorrect List Value Options:** Some Menu List line (`LINE_TYPE.LIST_MENU1` or `L_m1` in logs), the range (min/max) of valid values seems to be incorrect, but cannot see in the data how to fix it.
166
185
Some of the valid values are not even sequential, very spread apart. There has to be a list of valid options somewhere. Currently fixed some by overriding the valid values in the script code (config for each field).
167
186
168
-
2.**Unable to Load menu lines**: The RX return unknow lines when requesting menu lines. **Realy don't understand what they are for**. Some menus
169
-
seems to stay stuck in the same return line or no response to the request, making the RX reset/close the connection and terminate.
170
-
Was able to hack it for AR631/AR637 `"First Time Setup"`, `"First Time SAFE Setup"`, and `"Servo Realm"`. Maybe this hack will work in other RX, so let us know if you get this problem.
187
+
2. Glider/Heli/Drone wing types not ready.
171
188
189
+
For Helicopter, use airplane normal wing and normal tail
0 commit comments