-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
widgets vs. sensors (TX16s/FS-IA6B FW2.8.3) #3543
Comments
I'm sorry, this is not a move to widgets, but sensor values from the receiver. I specify, see the pictures. |
Yes the sensors calculation changes. You can refer to: It is aligned with Flysky official products NV14/EL18, and the PR is created by Flysky engineers. Did you use a MPM? |
Yes, i use mpm 1.3.3.20 . For my sensor construction, I use the library according to https://github.com/adis1313/iBUSTelemetry-Arduino. |
I can also confirm new bugs related to iBus telemetry introduced with EdgeTx 2.8.3:
I use a Radioking TX18S and a Radiomaster TX16S, both with the internal MPM 1.3.3.20. Regards |
I can verify the reason of point 2 is due to the PR given from flysky, and from the code it seems it is logical for the change they made, they fixed a bug as packet[0] = type, packet[1] = instance and data starts from packet[2] onwards, see the current code: edgetx/radio/src/telemetry/flysky_ibus.cpp Lines 306 to 310 in 53f172b
The code in v2.8.2 is: edgetx/radio/src/telemetry/flysky_ibus.cpp Lines 162 to 165 in 03e80fb
I think maybe there are some 3rd party software out there that implements something based on the bug in OpenTX/EdgeTX and now the bug is fixed by Flysky, finally, those software are no longer working properly. I think we may need more information about all the software/firmware that you use to trace the simple question "Why the code is like this ?" in the first place. |
Sensor and software I use is the successor of this: I suspect the following: Was there an update for a FlySky transmitter module? Frank |
Fixes #3196 - explains the problem of transmitting sensor values on TX EL18 with AFHDS 3 protocol |
It isn't - only AFHDS2A. However, since iBus telemetry is common to both versions, and thus also the MPM, if there are any fixes that make things work properly with official Flysky sensors and spec, this can then expose any bugs in MPM telemetry processing that were masked in previous code, or present on the OTX/ETX code all this time. That's not to say there aren't new ones now... this is a living project after all 🤣 |
Ok, how should the compatibility for the 4-byte data be restored? In the current state no usable values are transferable with the MPM. The MPM is the backbone for OpenTx and EdgeTx transmitters. iBus telemetry is used for many DIY projects and finally OpenXSensor (https://github.com/mstrens/oXs_on_RP2040) can speak iBus protocol. Frank |
Let me talk to Flysky and see if there are any resolutions. |
ID 04 is used by Flysky gyro sensor that used in:
This change can be reverted, should not affect other Flysky product. (Need Flysky to test and confirm)
Let me see if this can be fixed. |
I would like to thank you very much for your efforts.
This should only be a minor issue. DIY'ers can easily fix it on the sensor side. I changed to ID 03 (shown as "A3") to transmit battery voltage.
Sounds good! Fixing issue 2 would be very important. I sincerely hope that it works out.
A format that the yaapu widget understands would be great. Frank |
I have made a PR, please test if it works for you. |
Sorry, I'm new here and I don't know the exact wording. But if I understand correctly, you made the change in 2.9. nightly |
Same problem here. Do we have to compile on our own? I never did but I'm willing to try. |
Ok, I managed to compile https://github.com/EdgeTX/edgetx/tree/fix-3543 via gitpod. Result: My position is Sensor 29 and 30 shows the values if I use ID 0088 and 0089, shown as RAW data. Frank |
@ivanb123github @Steini63 Just for future reference: To access the automatic builds for a PR, first open up the PR page. Under the PR title, you should see a series of tabs (Comments, Commits, Checks, Files Changed). Click on the Checks tab. Then if you are after the radio firmware, click on the link on the left side mentioning firmware. If you want a Companion/Simulator build, pick the one that suits your operating system. Then, under the 'Artifacts' heading near the bottom of the page will be a link to the zip file containing either the firmware or companion package. In this case, the PR in question is #3582 |
I have now downloaded FW Peter Feerick as advised. Thank you. It's easier and more accurate. But nothing changed. #3543 (comment) |
Just as a general note, whenever any changes are made around telemetry / telemetry sensors, it is advisable to reset the telemetry sensors... i.e. delete all and discover new... as any settings changes such as what units are used are not going to be changed from those that are configured. From the looks of things clearly there is more work to be done 😆 btw, 2.8.4 is about to get released (finally, since the windows companion builds are working again), but it will have no bearing on this - it is going to be primarily only for x9d+2019 users due to a firmware overflow issue. |
Does that mean, even the fix for issue 2. (and presumably #3583) isn't part of 2.8.4 ? |
No, because it's still a work in progress. If we manage to fix more of this, it can be part of 2.8.5 (or 2.9, depending on timeline). 2.8.4 was delayed due to issues with the build system. |
Sounds promising. How does this solution come from OpenI6X to EdgeTx? Frank |
It is almost the same source missing some refactorings. |
Umm.... not a good idea to include protocol specific dependencies in UI code, should only depends on the telemetry information alone. Let me see if I can work out a more generic solution. |
edgetx/radio/src/telemetry/flysky_nv14.cpp Lines 79 to 80 in 7cd9577
I found something interesting, I tried to setup the sensors similar to these configurations, please check if this works for you. |
I am sending a comparison of telemetry data in version 2.8.2 and PR3582 and a test program (Gps-iBUS-FS-IA6b.zip.) |
I changed the units to RAW, see if this gives better outcome. |
I am sending a comparison of telemetry data in version 2.8.2 and PR3582 and a test program (Gps-iBUS-FS-IA6b.zip.) |
Did you delete the sensors and rediscover? It seems nothing is changed. |
richardcll - Does this mean I should install new FW for PR? |
Yes I delete the sensors and rediscover |
Yes, I changed the PR, you need to rebuild and reinstall the firmware. Your firmware is still Jul-27. And what I change is to use RAW, which should be the same as ID85/86 in your testing screens. |
yes GPS the same as ID85/86, but they should have a decimal point. Example 50.3608704, 17.53578752 |
Notice. In TX16 settings I can choose between NMEA or DMS format for GPS. For nmea it is 50.3608556 respectively 15.9244172 and for DMS it should be 50°21'39.080 respectively 15°55'27.902 . I tried changing the settings but there was no change for DMS. |
Note that this is in relation to Flysky telemetry (not Frsky) - so not necessarily indicative of an issue with that setting (other than it not recognising the values as being valid GPS data). |
Ideally, since the sensors are not produced by Flysky (3rd party). It will be nice to make use of the Frsky GPS sensors formatting, but I cannot figure out a way to generic way to work this out. So leave it as RAW so it is readable. Maybe the sensors need a refactoring. ^.^ |
Surely not! 🤪 🤣 |
for 3dj:
|
Looks like this might have been solve by #4062 |
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Build system
Current Behavior
I tried FW 2.8.3 for TX16s with RX FS-IA6B and it maps telemetry data to widgets incorrectly. This is a telemeter. data from the sensor of my construction. So I reverted back to FW 2.8.2 and everything works OK again.
Expected Behavior
see above
Steps To Reproduce
Version
2.8.2
Transmitter
Radiomaster TX16S / TX16SMK2
Operating System (OS)
No response
OS Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: