-
Notifications
You must be signed in to change notification settings - Fork 121
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
PFD improvements #302
base: master
Are you sure you want to change the base?
PFD improvements #302
Conversation
…rt (Stratux AHRS) - pressure alt - support speeds>500 and variable tape width - show destination - traffic - use mag sensor preference (for phones with good gyros) - shade plane symbol - use LTGRAY for scales (tapes/compass) - vary alt tape and compass numbers size - on compass add airplane symbol, 45deg edge marks, 10deg compass marks, current ground track diamond - less heavy CDI dots
Great!
What kind of setup is needed to test this fully?
Thanks
…On Jun 9, 2017 8:36 AM, "pasniak" ***@***.***> wrote:
before adding Stratux AHRS support.
- format MH/CRS 000 - add external inclinometer support (Stratux AHRS)
- pressure alt - support speeds>500 and variable tape width - show
destination - traffic - use mag sensor preference (for phones with good
gyros) - shade plane symbol - use LTGRAY for scales (tapes/compass) - vary
alt tape and compass numbers size - on compass add airplane symbol, 45deg
edge marks, 10deg compass marks, current ground track diamond - less heavy
CDI dots
On a phone: http://i.imgur.com/J2rWr5a.png
On a tablet: http://i.imgur.com/lnhgh1b.png
------------------------------
You can view, comment on, or merge this pull request online at:
#302
Commit Summary
- PFD improvements: format MH/CRS 000 - add external inclinometer
support (Stratux AHRS) - pressure alt - support speeds>500 and variable
tape width - show destination - traffic - use mag sensor preference (for
phones with good gyros) - shade plane symbol - use LTGRAY for scales
(tapes/compass) - vary alt tape and compass numbers size - on compass add
airplane symbol, 45deg edge marks, 10deg compass marks, current ground
track diamond - less heavy CDI dots
File Changes
- *M* app/src/main/java/com/ds/avare/PfdActivity.java
<https://github.com/apps4av/avare/pull/302/files#diff-0> (18)
- *M* app/src/main/java/com/ds/avare/storage/Preferences.java
<https://github.com/apps4av/avare/pull/302/files#diff-1> (2)
- *M* app/src/main/java/com/ds/avare/views/PfdView.java
<https://github.com/apps4av/avare/pull/302/files#diff-2> (554)
- *M* app/src/main/res/values/strings.xml
<https://github.com/apps4av/avare/pull/302/files#diff-3> (3)
- *M* app/src/main/res/xml/preferences.xml
<https://github.com/apps4av/avare/pull/302/files#diff-4> (5)
Patch Links:
- https://github.com/apps4av/avare/pull/302.patch
- https://github.com/apps4av/avare/pull/302.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#302>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACz4z-9IkwPvoC_lO66S98g548aHhxKNks5sCTxkgaJpZM4N1S_Y>
.
|
Actually, for the changes above you do not need anything, maybe an Android device with a properly working gyro. I discovered my Huawei Honor device has a good magnetometer and gyro, which is why I added a preference to get yaw (and I show separate ground track). To hook up an AHRS from Stratux you need Stratux version: 1.3b2 as documented in https://www.reddit.com/r/stratux/comments/6agj06/v13b1_sensor_ahrs_beta . I got http://a.co/cf5RWcO and it worked (except the magnetometer seems work in progress) after I made bunch of changes to avarehelper and small changes to avare. I am planning to create https://github.com/pasniak/avare/tree/ahrs branch for that very soon. Hooking the usual way via avarehelper (listening UDP) works fine but pressure alt is part of Stratux webservice. I would prefer to hook ws: but need to finish coding to test perf. Your opinion here is very welcome. End goal of this is to be able to hang Avare with PFD screen which shows AHRS from Stratux and destination synced by WiFi from my tablet (ummm, that is not working well yet...). Then I will add airports on horizon in PFD :) |
This code looks OK to me. |
I ground tested on Moto G and the refresh rates are good. I used to test Nexus '13 but it died. Given usage is limited I think we could treat PFD as 'experimental' feature. Maybe even show a 'Experimental' warning? Stratux crowd is happy and I know a guy with Stratus who is also happy with his FF PFD. Re: testing - I am waiting for Stratux AHRS dev to be in better shape, dev is still going on. I've just pushed https://github.com/pasniak/avare/tree/ahrs which has Preferences choice of using internal Gyros (off), external Stratus gyro (via UDF & helper - requires https://github.com/pasniak/avarehelper/tree/ahrs) and Stratux websockets, and shows AHRS source. Maybe a separate PFD Preferences category is needed? We could also whitelist against models. The best list I found today is https://stackoverflow.com/questions/4347143/which-android-phones-out-there-do-have-a-gyroscope. It also seems Marshmallow supports sensor quality level (https://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_HIFI_SENSORS). I only have Lollipop on Honor (HUAWEI Honor X2 GEM-703L) so cannot test. |
I have a stratux with ahrs and it shows the attitude fine. It seems to send
data packed in 0x7E ... 0x7E GDL90 format.
I think the right first solution is to decode it in Avare IO and send to
Avare where it will be sent to 3D and to PFD screens.
Later it will be added directly to Avare to skip the IO.
Since pasniak is working on it, I will leave it to him to send a PR.
…On Jun 15, 2017 5:49 AM, "pasniak" ***@***.***> wrote:
I ground tested on Moto G and the refresh rates are good. I used to test
Nexus '13 but it died. Given usage is limited I think we could treat PFD as
'experimental' feature. Maybe even show a 'Experimental' warning? Stratux
crowd is happy and I know a guy with Stratus who is also happy with his FF
PFD. Re: testing - I am waiting for Stratux AHRS dev to be in better shape,
dev is still going on.
I've just pushed https://github.com/pasniak/avare/tree/ahrs which has
Preferences choice of using internal Gyros (off), external Stratus gyro
(via UDF & helper) and Stratux websockets, and shows source. Maybe a
separate PFD Preferences category is needed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#302 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACz4z9kPtBtztN7CeGSzkbUCAQm5b7zsks5sEP4ogaJpZM4N1S_Y>
.
|
The AHRS feature will be released after the next Avare release expected in
a few days depending on how the testing goes.
BTW where is the data packet format for AHRS as it's not in GDL90.
…On Jun 19, 2017 6:18 PM, "Apps4av Support" ***@***.***> wrote:
I have a stratux with ahrs and it shows the attitude fine. It seems to
send data packed in 0x7E ... 0x7E GDL90 format.
I think the right first solution is to decode it in Avare IO and send to
Avare where it will be sent to 3D and to PFD screens.
Later it will be added directly to Avare to skip the IO.
Since pasniak is working on it, I will leave it to him to send a PR.
On Jun 15, 2017 5:49 AM, "pasniak" ***@***.***> wrote:
> I ground tested on Moto G and the refresh rates are good. I used to test
> Nexus '13 but it died. Given usage is limited I think we could treat PFD as
> 'experimental' feature. Maybe even show a 'Experimental' warning? Stratux
> crowd is happy and I know a guy with Stratus who is also happy with his FF
> PFD. Re: testing - I am waiting for Stratux AHRS dev to be in better shape,
> dev is still going on.
>
> I've just pushed https://github.com/pasniak/avare/tree/ahrs which has
> Preferences choice of using internal Gyros (off), external Stratus gyro
> (via UDF & helper) and Stratux websockets, and shows source. Maybe a
> separate PFD Preferences category is needed?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#302 (comment)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/ACz4z9kPtBtztN7CeGSzkbUCAQm5b7zsks5sEP4ogaJpZM4N1S_Y>
> .
>
|
I found it by searching 0x4c in Stratux codebase. https://github.com/cyoung/stratux/search?utf8=%E2%9C%93&q=0x4c&type= Here's one of my older avarehelper shelves: |
I tried your patch. I see invalid values. It should be in degrees and I see
values like 1540. What's the difference between yaw and heading and what is
gs?.
…On Jun 20, 2017 5:31 AM, "pasniak" ***@***.***> wrote:
I found it be searching searching 0x4c in Stratux codebase.
https://github.com/cyoung/stratux/search?utf8=%E2%9C%93&q=0x4c&type=
Here's one of my older avarehelper shelves:
add_AHRS_message.zip
<https://github.com/apps4av/avare/files/1087658/add_AHRS_message.zip>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#302 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACz4z1ldx7NydUf6de1ADI8ubDsbMnHAks5sF5FrgaJpZM4N1S_Y>
.
|
It will take a bit of time... my dev rig crashed and I did not shelve the working code. I can only start recovery work from tomorrow on. I recall fix was not too difficult. |
If this is startux specific then stratux should provide the code for it.
Its a waste of time to reverse engineer it.
…On Wed, Jun 21, 2017 at 6:20 AM, pasniak ***@***.***> wrote:
It will take a bit of time... my dev rig crashed and I did not shelve the
working code. I can only start recovery work from tomorrow on. I recall fix
was not too difficult.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#302 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACz4z8q3n7i3avfco2S9T5CWhAXigDOhks5sGO54gaJpZM4N1S_Y>
.
--
Regards,
Apps For Aviators Support,
We encourage users to use the Forum for all questions. Any updates to the
forum will help other users, who might have similar questions.
Forum: https://groups.google.com/forum/#!forum/apps4av-forum
|
My changes are on https://github.com/pasniak/avarehelper/tree/ahrs It's not very complicated. Given Stratux AHRS seems to work (per reddit discussions) with all other EFBs the protocol (UDP) seems fine. Implementing it in avarehelper would give us a shot at supporting Stratus which, I understand, also has AHRS. |
It's all in the repo, there's nothing on a stratux install that isn't on either the stock Raspbian image or the GitHub repo. |
I'm trying to find just the PFD codes and run it as a separate app. Where would I find them? |
@Qhergt : GUI is in app/src/main/java/com/ds/avare/PfdActivity.java, My last 3 commits will give you an idea on where things are. |
before adding Stratux AHRS support.
On a phone: http://i.imgur.com/J2rWr5a.png
On a tablet: http://i.imgur.com/lnhgh1b.png