RPM value always shows 1000

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
onki
Posts: 40
Joined: Tue May 14, 2013 8:34 am
Country: -

RPM value always shows 1000

Post by onki »

Hi,

I was testing another sensor yesterday and found a strange behaviour.
This sensor is using GPS and dual MS5611 Vario and a ACS current sensor.

When testing the sensor with my YEP 90 ESC (RPM output wire connected to port 8) I always get 1000 rpm even when the motor is stopped or at full speed.
I have seen the same effect in my previous sensor sonnected in the same way (but using a different ratio).

Any ideas what could be wrong?

Carbo
Posts: 467
Joined: Fri Aug 02, 2013 6:55 pm
Country: Germany
Location: Freinsheim RP

Re: RPM value always shows 1000

Post by Carbo »

Can you crosscheck with 4V AC, which frequency is displayed?
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: RPM value always shows 1000

Post by mstrens »

I do not see any line in the code of oXs that should force a fix value for RPM.
If you deactivate GPS, current and/or vario do you still have the same issue?
Do you have an oscilloscope or a digital analyser to look at the signal to be read by oXs for RPM.
If you do not find, we can try to debug this.
onki
Posts: 40
Joined: Tue May 14, 2013 8:34 am
Country: -

Re: RPM value always shows 1000

Post by onki »

Hi again,

I have tested the signal coming from the YEP ESC and this is fine.
yep_rpmsignal.jpg
So there must be something wrong with the sensor. I will test this on the bread bord using a signal from a frequency generator.

Best regards
Onki
onki
Posts: 40
Joined: Tue May 14, 2013 8:34 am
Country: -

Re: RPM value always shows 1000

Post by onki »

Hi,

Just finished testing.
I used a pulse generator to generate 100 or 200Hz signals.
Input is port 8 according to the documentation.
In any configuration (just rpm, with GPS, with voltage/current) I get 1000rpm (Jeti protocol). even when no signal is present.

Best regards
Onki

mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: RPM value always shows 1000

Post by mstrens »

I found the bug.
in file oXs_out_jeti.cpp, you will find a line with
* fieldValue = 1000 ;
Please delete this line.
it is probably a line that I added to made some test and I forgot to removed it.
onki
Posts: 40
Joined: Tue May 14, 2013 8:34 am
Country: -

Re: RPM value always shows 1000

Post by onki »

Thanks,

After this modification it works well.

Best regards
Onki

Post Reply

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