Volume¶
The Volume page sets how loud the suite's announcements are, in one of two ways: a level for the announcements themselves, or the radio's whole master volume through a global variable. A save the card refuses shows Save failed: the settings file could not be written to the SD card.
Mode¶
- Mode: one of three, and only one at a time.
- Off (radio default) (the default): the radio's own Wav volume and master volume rule; the suite writes nothing.
- Callout level: every announcement plays at the Level set below; the master volume stays with the pot.
- Master volume: the suite sets the radio's whole volume through a global variable; see Master volume.
The two cannot be combined because they multiply: the level scales the sound files, and the master volume scales everything the radio plays after that. Under a master volume the suite sets, a level could only make the announcements quieter than that master volume says.
A settings file written before the page offered a mode is read the way the suite used it then: a global variable set means Master volume, a level set means Callout level, neither means Off. A file that had both a level and a global variable set opens in Master volume, and the level is ignored from then on -- the announcements then play at the radio's own Wav volume under the master volume, rather than at that level. The level stays in the file and is offered again when Callout level is picked. The mode is written to the file on the page's first save.
- Connected only: shown in both modes, under Mode.
- On: the mode acts only while the radio's link to the model is up, so bench and menu work stays at the radio's own volume. In Master volume the pot rules until the link comes up, the Normal Level is written then, and
-1024is written when the link goes down, also while an alarm has the volume raised. - Off: the mode acts from the moment the dashboard or the tool starts, and the link changes nothing. In Master volume the pot therefore stays overridden for as long as the mode is on.
- A settings file written before this setting existed is read the way each layer behaved: in Callout level the connected-only switch the callout level had before this page offered one mode (off unless that file had turned it on), in Master volume on, which is how the master volume always behaved. The page shows that, and shows it again when Master volume is picked once more before a save.
- A new setup starts with it off. Otherwise, until Connected only is set, a mode picked on the page starts from that earlier callout-level switch, which a fresh install has off -- so picking Master volume on a fresh install starts with Connected only off, and the pot stays overridden while the mode is on. Turn it on to keep bench and menu work at the pot's volume.
- It is stored on the first save in Callout level or Master volume, and by any save once it has been set; a save in Off without it set does not store it.
- For adjustment announcements made where neither the dashboard nor the tool runs (by the background decoder, or by the service widget on its own), on means that the radio's RF link is up.
Callout level¶
- Level: 1 to 5 (5 the loudest). It applies to the sound file of an announcement, to the number and unit the radio speaks after it, to the adjustment announcements the background decoder or the service widget makes, and to the beep of a completed accelerometer calibration. Level 3 plays a sound file at a quarter of its amplitude, which is what the radio's own Wav volume does at its middle setting 0; 5 plays it at full amplitude, 1 at a sixteenth. Picking Callout level with no level stored starts at 3.
- Test: Play (behind a play symbol) speaks a sample announcement -- the word "battery" and the number 80 with its unit -- at the Level shown, also before it is saved. It writes nothing and works while the model is armed.
Master volume¶
The suite changes the entire radio's volume during flight. It writes the Normal Level, and the Alert Level right before an alarm's critical announcement plays -- the upper level of an alarm with two, the only level of an alarm with one, and for the low-voltage alert its announcements from its critical level on (the pack held below the flight controller's minimum cell voltage) until the alert clears. The Normal Level returns 8 seconds after the last such announcement. Which alarms raise it is set per alarm, with Raise Volume on their pages under Settings → Audio → Events; all are on except Telemetry Dropouts. A condition that holds without being spoken raises nothing. How it works in detail: Raise Volume. With Connected only on, both levels are written only while the link is up.
- Global Variable: picked with the radio's own source picker, which lists only the global variables this radio has, with their names -- GV1 to GV9 on most radios, GV1 to GV15 on radios that have fifteen. It has no entry for off: Mode Off is what turns the master volume off. Until a global variable is picked, the picker shows EdgeTX's empty source
---, the suite writes nothing, and the page says under the picker that one is to be picked. EdgeTX lists no global variable while global variables are switched off for the model (in its model setup, or for every model in the radio setup); a global variable picked before stays shown and is still written. A settings file that names a global variable this radio does not have (copied from a radio with more) leaves the master volume off, and the page says so under the picker; the setting stays in the file. - Normal Level (%): the master volume the suite writes, outside an alarm's critical announcement.
- Alert Level (%): the master volume while an alarm's critical announcement plays, until 8 seconds after the last one.
The setting is radio-wide: every model memory that carries the chain below uses the same global variable.
Radio Setup (once per model):
1. Settings > Audio > Volume: set Mode to Master volume and Global Variable to a free global variable (e.g. GV9). Set your desired Normal and Alert volume levels, and turn Connected only on if the pot should rule until the model is connected.
2. Inputs: Add one input, e.g. I15 "Vol", Source = GV9, weight 100. (Give it its own slot and leave it out of the mixer).
3. Logical Switch: Create a logical switch L10: a > x with a = GV9, x = -1024. This is true while the suite is driving the volume.
4. Special Function: Create a special function SF: L10 -> Volume = I15 (Vol). (Use the input, not the GVAR).
Steps 2 to 4 can also be left to the page: Create under the model chain check writes the links that are missing, after a preview.
When the suite stops driving the volume while the dashboard or the tool runs (the link goes down with Connected only on, another mode is picked, or another global variable is picked -- then the one it held), it writes -1024 to the GVAR. This makes the logical switch false, the special function releases, and your regular volume pot regains control. Each changed value is a write into the model, which EdgeTX saves with the model: an alarm that raises the volume costs two, one before its announcement and one 8 seconds after the last.
[!NOTE] Retiring the feature does not automatically release the GVAR. The last written value stays in the model file, so the pot will remain overridden until something writes
-1024again. The same holds when the radio is switched off while the suite holds the volume and the mode is changed before the next start: only a running dashboard or tool that wrote the global variable releases it, so write-1024by hand (or pick the mode again, start the dashboard, then change it) before relying on the pot.
Model chain¶
Under Alert Level the page shows whether the model carries this chain for the global variable picked, one line per link:
- Input: the input whose source is the global variable, or that none is.
- Logical switch: the logical switch
a > xwitha= the global variable andx=-1024, or that none is -- or the one that compares the global variable with anotherx, which it names. - Special function: the Volume function switched by that logical switch with that input as its source, or what is wrong: one that has the right switch and another source, or the right source and another switch, each named, or that there is none.
Any slots count, and the names are those EdgeTX shows: an input by its name (or its number), a logical switch as L01 to L64, a special function as SF1 to SF64. A link found reads with a check mark. The check also warns about what lets a chain be found and still not do what it should: Popup set for the global variable, a second Volume function that is on (the one further down the list wins), an input with a weight other than 100, an offset, a curve, a switch, a restriction to some flight modes, a Side of x>0 or x<0 (the other half of the global variable's range then reads as 0) or more than one line (the first line that is on is the input's value, so another line can take over); a logical switch with an AND switch, a delay or a duration, and a Volume function that is switched off. It also warns when a flight mode that has a switch has a value of its own for the global variable (Warning: in FM2, GV3 has its own value, not the suite's.): EdgeTX lets each flight mode use FM0's value -- its default for every mode but FM0 -- or hold its own, the input and the logical switch read the value of the flight mode that is active, and the suite writes FM0's, so in such a mode the volume does not follow the suite. A flight mode without a switch is never active, so its value is not counted. Set that mode back to FM0's value in EdgeTX's global variables; a script cannot do it, because EdgeTX's Lua writes no "use FM0's value". EdgeTX's Lua answers each mode's value as the mode uses it, not whether it is the mode's own, so the check sees an own value only while it differs from FM0's. Mixes are not searched for other uses of the global variable. The radio's own Global Functions can hold a Volume function too, and the check cannot see them: EdgeTX's Lua reads only the model's special functions.
The model is read when the page opens, when another global variable is picked, on Reload, and by Create at Yes and after its writes (below) -- not on every pass, and not again when the page is redrawn for anything else. The check only reads; it changes nothing in the model and works while the model is armed. A radio whose firmware does not answer the questions it needs gets a line saying so instead.
- Create: shown while the chain is not complete, and available only once Mode Master volume and the global variable shown are saved -- until then the line under it says to save the page first, and after Save the page is drawn again with Create available. When something else holds Create back as well -- a faulty link, no free slot, a radio without EdgeTX's confirm dialog -- that reason stands under it instead, since saving alone would not make Create available. The Test buttons below need no save. Preview opens EdgeTX's own confirm dialog, which lists one line per link: the links to be written as EdgeTX's lists show them -- for example
Input 31: GV3, weight 100%,Logical switch L64: a>x GV3 -1024,Special function SF58: L64 Volume 31, where EdgeTX draws its input symbol before the input's number -- and the links already in the model as present. A slot still to be written is named the way EdgeTX names it once it is in use, so the preview and the check above name it alike. Its buttons are EdgeTX's No and Yes, and No has the focus when it opens, so a press of the wheel cancels. Nothing is written before Yes. - Where: each missing link goes into the LAST free slot of its kind -- the highest input with no line, the highest logical switch with no function, the highest special function with no switch -- and never into a slot that holds anything, nor into an empty input or logical switch that something the page can read still names: an input line or a mix line (its source or its switch), a logical switch (its AND switch, or its
aandbwhere its function takes a source or a switch there), a special function that has a switch (its switch, or its source for Volume, Play Value, Backlight and Adjust GV from a source), a flight mode's switch or a timer's switch. Filling such a slot would make whatever names it act. The radio's Global Functions cannot be read, so an empty slot only they name counts as free. The input is written with the global variable as its source, weight 100, both sides and nothing else; it keeps whatever name the input has. The special function is switched on. - What is kept: a correct input or logical switch already in the model is used as it is, and only the links that are missing are written. A link that is there but faulty -- an input with any of the warnings above, a logical switch with an AND switch, a delay or a duration, a logical switch that compares the global variable with another
x, or a Volume function on one link but not the other -- is never changed: Create is then unavailable, the line under it says so, and the check above names the fault to fix by hand. A Popup on the global variable or a second Volume function that is on is not a link; Create stays available, and the check keeps warning about it afterwards. The same holds for a flight mode with a value of its own: Create writes no flight mode's value and is not held back by one. - What it cannot: Create is unavailable when no free slot of a needed kind is left (the line says so when the only empty ones are still named elsewhere), when the model's 64 input lines are all used (EdgeTX then inserts nothing), while the model is armed and while the arming state is not known (the same locks as Test, with the reason under it), and on a radio without EdgeTX's confirm dialog.
- After Yes: the arming state, the mode and global variable shown and saved, and the model are read again, and nothing is written unless the model still asks for exactly the links the preview listed; otherwise the line under Create says the model changed. The links are written input first and special function last, and each is read back before the next. Then the check runs again on the model as it is now, and the line under Create says what was created and whether the check reads the chain complete -- that check, not the writes returning, is what says the chain was made. If a write does not take, the line names what was already created and what failed; nothing is removed, and Create then offers the rest. EdgeTX saves the model after the writes, and the chain acts at once on what the suite writes to the global variable: the Normal Level, the Alert Level while a critical alert is on, and
-1024(the pot rules) while Connected only is on, the link is down and no critical alert is on. If the model is armed or its arming state is no longer known at Yes, or the settings saved are no longer Master volume with this global variable, nothing is written, and while that lasts the line under Create gives the lock's reason. -
No undo: the suite never removes anything from the model. To take the chain out by hand, first write
-1024to the global variable (or save Mode Off with the tool open), so the pot is not left overridden, then delete the three links in EdgeTX. -
Test: Normal and Alarm (each behind a play symbol) set the global variable to the Normal Level or the Alert Level shown (also before it is saved), speak the sample announcement, and put the earlier value back after 5 seconds -- or at once when the page is left, on Reload and when the model is armed, and within a second when the arming state can no longer be told. If the global variable already holds that value, nothing is written; if something else writes another value to it in those 5 seconds, that value is kept, and the suite's own master volume writes its value again after a test has put the earlier one back. Every value written is a write into the model, which EdgeTX saves with it. They are available only with the whole chain found, never while the model is armed, and never while the arming state is not known -- the link is up but the flight controller reports no arming flags; the reason stands under them while they are not, and the page locks and unlocks them on its own within a second as the arming flags arrive or go away. With the link down they are available: the suite cannot tell the arming state then, and the write changes only the radio's own volume. There is no way for the suite to know when the radio has finished speaking, so the 5 seconds are an estimate.