PPM_SPORT Mode, not found VSPEED

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

PPM_SPORT Mode, not found VSPEED

Post 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

rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post by rmd4u »

Sorry, I forgot the examples
Example.zip
(3.11 KiB) Downloaded 317 times
GRacing
Posts: 25
Joined: Mon Dec 23, 2019 5:53 pm
Country: Portugal

Re: PPM_SPORT Mode, not found VSPEED

Post 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
rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post 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
rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post 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

rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post by rmd4u »

Hello mstrens,

is this a bug or are there settings missing that I have overlooked?
thanks
best regards
Robert
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post by mstrens »

I do not yet know.
I did not yet look at your setup.
rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post by rmd4u »

Thanks
rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post 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
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post 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.
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post 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
rmd4u
Posts: 16
Joined: Sun Dec 22, 2019 9:14 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post by rmd4u »

With its own config_basic and config_advanced in SDP3X, VSpd now works perfectly :P
thanks mstens
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: PPM_SPORT Mode, not found VSPEED

Post 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

Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”