-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Model Notes #1378
Comments
Um... so what is the problem? 😁 |
Radiomaster TX16S That the checklist display in Companion v2.6. is missing, is not displayed. |
Thanks... the difference a missing word makes! :) Right, so with a model named
although Companion knows perfectly well it is in I also don't recommend using the sd browser to find that file instead, unless you want simulator and companion to crash. |
Simulator and radio always look for this file /model name/name.wav as a audio call out on radio boot. I use this feature. |
Ok, so trying again, and it now goes beyond that - maybe I scrolled back and missed the lines after... First at around 8 seconds is the attempt to view the model notes via the menu, and then at around 18s trying to view it via sd browser and eventual crash. |
at 18s f_open(E:/Documents/EdgeTX/RadioMaster TX16s/SD Card V2/C:/Users/pfeer/AppData/Local/Temp/etx-CfELgo/MODELS/fpv.txt) = INVALID_NAME (FIL 000000d62f7fedf0) So combines both directories and appends file name so something definitely wrong with sd browser in simulator mode. Also it should halt after 1st failed attempt. |
From the log, the radio start up doesn't bother to look at the profile sd card for the checklist file. Checklist is displayed on radio start up for B&W radios tested with X9D+ simulator. |
There are three ways to look at this at - you can enable the checklist (which I didn't), you can view the model notes directly / via the menu (which I did), or via the sd browser (which I did). If you enable the checklist it doesn't show up. If you attempt to view the model notes it doesn't show up. If you attempt to view the model notes through the sd browser - it stops working ;) At the end of the day, something is wrong with the path, which is what is setting everything off. |
When the target radios are compiled in simu mode any file access code needs to check both sd paths (primary and if not found then profile). |
Yup, reading a file using SD browser crashes the sim, and notes are not being displayed. |
Right, so this is something very specific to the Simulator data file / launch through Companion mode - as if you run Simulator standalone, and instead use the data folder or sd image modes, everything works properly. |
What I found rather odd was this... when in data file mode, it correctly identified the existence of the file, but then changed into the tempoary unzip directory for ETX data file. btw, if you shove the model notes into that tempoary folder, that works also...
|
@pfeerick it is not odd, but intentional, as editing things in Companion does not mess up with backed-up contents of SD-Card on your drive - instead it creates a "tmp" and sets radio.yml and modelXX.yml there based on actual settings in Companion. Issue is that it should symlink or copy there matching checklist files. |
And I do confirm that making a copy of requested files: |
As for fix for development purposes one may use following script, after correcting paths: |
No, I don't think that is quite right - have another read of what Neil said above - there are two paths it is supposed to use, and to me that log is suggesting that for some reason it is switching paths even though the first path was correct. Either that, or maybe it is switching paths to read something, and not setting it back. |
@eshifri Can you play with this one... I've finally spotted the actual culprit (and who was responsible... but I won't name names :P) ... Basically getting rid of this, and using a full, rather than a relative path, somewhat similar to what the B&W radios do, will resolve this... but I've not been able to get it completely working again... 😆 edgetx/radio/src/gui/colorlcd/view_text.cpp Line 214 in 6648dff
|
Sorry, I'm a little bit at a loss... Or, in other words: how do I reproduce the problem? :-) |
Yes, this is indeed the issue raised. Basically, it is in two parts - if you have the show checklist option enabled, the model notes will not be displayed on colorlcd, it seems due to the chdir call confusing simu. And while the view notes icon will show, in the menu, it will fail to actually do anything, for the same reason. I. E. With a colorlcd profile, create a sd card path with a model notes file, and then configure a model to show preflight checklist and try it in companion simulator. It won't show. And then try to view model notes via the main menu. On radio this is all fine, just simulator that is confused due to the dual path handling it does. :( B&W model notes path handling works fine in simulator also. ;) The bug seems to go back to the initial view text implementation, only cosmetic code changes in that bit of code since, and this issue predates all of that anyway. |
Radiomaster TX16S
The checklist display is [missing] in Companion v2.6.
It was still available in v2.5.
General information
EdgeTX "Santa" 2.6.0-RC2
The text was updated successfully, but these errors were encountered: