Page 1 of 1

PPM_SPORT Mode, not found VSPEED

Posted: Sun Feb 23, 2020 11:53 pm
by rmd4u
Hello,

There are two ways to change the sensitivity of the vario (MS5611).
Either with #define PPM_VIA_SPORT or #define PIN_PPM
This also works and VSpeed is found as a sensor in both cases

If you now also use AIRSPEED_COMPENSATED, then in PPM_VIA_SPORT mode
no more VSpeed found, when using PIN_PPM everything works as usual
Is this a bug in the PPM_SPORT function?
Thanks
Robert

Re: PPM_SPORT Mode, not found VSPEED

Posted: Mon Feb 24, 2020 7:25 am
by rmd4u
Sorry, I forgot the examples
Example.zip
(3.11 KiB) Downloaded 327 times

Re: PPM_SPORT Mode, not found VSPEED

Posted: Mon Feb 24, 2020 8:35 am
by GRacing
rmd4u wrote: Sun Feb 23, 2020 11:53 pm Hello,

There are two ways to change the sensitivity of the vario (MS5611).
Either with #define PPM_VIA_SPORT or #define PIN_PPM
This also works and VSpeed is found as a sensor in both cases

If you now also use AIRSPEED_COMPENSATED, then in PPM_VIA_SPORT mode
no more VSpeed found, when using PIN_PPM everything works as usual
Is this a bug in the PPM_SPORT function?
Thanks
Robert

You have a file in the openx sensor master called oxsppm.lua in the subfolder functions from the Lua Scripts.
You may want to edit the channel, that by default is channel 9, i believe.
Afterwards you have to assign a button a you want from your radio for executing the script, and then you will have that assigned channel from the osxppm.lua sending values through the telemetry port.

If you need more help, ask.

Bet Regards

Re: PPM_SPORT Mode, not found VSPEED

Posted: Mon Feb 24, 2020 9:22 am
by rmd4u
GRacing wrote: Mon Feb 24, 2020 8:35 am
You have a file in the openx sensor master called oxsppm.lua in the subfolder functions from the Lua Scripts.
You may want to edit the channel, that by default is channel 9, i believe.
Afterwards you have to assign a button a you want from your radio for executing the script, and then you will have that assigned channel from the osxppm.lua sending values through the telemetry port.

If you need more help, ask.

Bet Regards
This is not the problem, because the oxsppm.lua works with the simple Vario. Only in the same constellation with AIRSPEED_COMPENSATED you can adjust the sensitivity, but the VSpeed sensor is not transmitted anymore. With PIN_PPM
all this works !!
So it is because of the combination with Lua-Script in AIRSPEED_COMPENSATED !!

See them example

Best Regards

Re: PPM_SPORT Mode, not found VSPEED

Posted: Mon Feb 24, 2020 10:09 am
by rmd4u
When searching for the VSpd sensor, it does not matter whether the PPM transmission via PIN_PPM or PPM_VIA_SPORT is active. This is only important if I want to change the sensitivity.

If you switch from PIN_PPM to PPM_VIA_SPORT in the sketch, VSpd is no longer found.

// #define PIN_PPM 3
#define PPM_MIN_100 988
#define PPM_PLUS_100 2012

#define PPM_VIA_SPORT

Then the VSpd is no longer found.
VSpeed.jpg
Best Regards

Re: PPM_SPORT Mode, not found VSPEED

Posted: Tue Feb 25, 2020 10:18 am
by rmd4u
Hello mstrens,

is this a bug or are there settings missing that I have overlooked?
thanks
best regards
Robert

Re: PPM_SPORT Mode, not found VSPEED

Posted: Tue Feb 25, 2020 11:51 am
by mstrens
I do not yet know.
I did not yet look at your setup.

Re: PPM_SPORT Mode, not found VSPEED

Posted: Tue Feb 25, 2020 9:59 pm
by rmd4u
Thanks

Re: PPM_SPORT Mode, not found VSPEED

Posted: Mon Apr 20, 2020 7:20 pm
by rmd4u
Hi msterens,
is there still a chance that this mistake will be corrected?
Otherwise I have to stick to the hardware solution without lua script.
thanks

Re: PPM_SPORT Mode, not found VSPEED

Posted: Mon Apr 20, 2020 9:36 pm
by mstrens
I am sorry because I totally forgot your message.

I just checked the code and I can see some bugs.

I will try to fix it this week.

Re: PPM_SPORT Mode, not found VSPEED

Posted: Tue Apr 21, 2020 8:15 am
by mstrens
I made some changes to oXs in order to fix this bug.
I put a new version on github.
Still take care that this new version is not in the branch "Master" but in a new branch named "SDP3X".
I did it in this way because I was already working on a new version that should support a new type of airspeed sensor (SDP3X).
Still this version is currently tested by a member and I wait his feedback before putting the changes in master branch.
Please try the new version and let me know if it works or not.
Note: you have to use your own config_basic and config_advanced file. The file on github were prepared for the member testing the SDP3X

Re: PPM_SPORT Mode, not found VSPEED

Posted: Tue Apr 21, 2020 7:54 pm
by rmd4u
With its own config_basic and config_advanced in SDP3X, VSpd now works perfectly :P
thanks mstens

Re: PPM_SPORT Mode, not found VSPEED

Posted: Wed Apr 22, 2020 7:16 am
by mstrens
rmd4u wrote: Tue Apr 21, 2020 7:54 pm With its own config_basic and config_advanced in SDP3X, VSpd now works perfectly :P
thanks mstens
Thanks for the feedback.
I will put this version in Master branch when I got feedback from another user about the use of SDP3X sensor