Simple vario for er9x

Electronic projects that are either related to the firmwares for the 9x, or simply great for radio control applications.
Post Reply
barluk
Posts: 5
Joined: Fri Jun 14, 2013 6:39 am
Country: -

Simple vario for er9x

Post by barluk »

Hi all,
I want to show my simple vario and altimeter for 9x RC system based on frsky telemetry and open firmaware. It's very early version maybe someone has any comment what should I add to it.

Short video:
[BBvideo 425,350]http://www.youtube.com/watch?v=BV2iL5OZPKw[/BBvideo]

and page:
http://code.google.com/p/vario9x/

User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Simple vario for er9x

Post by Rob Thomson »

Hey.. another vario!

Assume you are aware of this project too:

code.google.com/p/openxvario/

Shout if you want a forum sub section to evolve/discuss your project.

Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
rainer
Posts: 391
Joined: Tue Jan 01, 2013 9:20 pm
Country: Germany
Location: near Düsseldorf

Re: Simple vario for er9x

Post by rainer »

Nice!
Welcome to the board!
can you tell us a bit about the platform you are using? which sensor / micro-controller?
Btw., is it possible that you re outputting m/s instead of cm/s ? or is this the way that er9x displays the data on screen?
If you need help with the protocol or something like that just ask and I'll try to help.
Rainer.
build your own vario ==> https://github.com/openXsensor/openXsensor/wiki (Formerly https://code.google.com/p/openxsensor/ and https://code.google.com/p/openxvario/)
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Simple vario for er9x

Post by jhsa »

That looks like OpenTx to me ;)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
barluk
Posts: 5
Joined: Fri Jun 14, 2013 6:39 am
Country: -

Re: Simple vario for er9x

Post by barluk »

Yes, saw it, looks interesting but I want to do something else. Ok I be in touch.

Lukasz

It's pure AVR mircocontroler and pressure sensor is mpx6115. I use on-board ADC to meassure absolute pressure. Now I have accuracy ~ 0,1m with internal ADC in atmega32 with external better ADC I thing accuracy will increase(this sensor has a very small noise), we see. Way that er9x displays the data on screen is very simple I emulates Fr-sky hub.

User avatar
MikeB
9x Developer
Posts: 17995
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Simple vario for er9x

Post by MikeB »

jhsa wrote:That looks like OpenTx to me
Looks like the custom telemetry screen of er9x to me!

What units are the Vspd in? I'm looking at that at present. FrSky seem to send cm/sec, to the nearest 50, on their new vario. I was going to change the display by dividing the FrSky value by 100 and displaying 1 decimal place.
Same for the voice output.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Simple vario for er9x

Post by jhsa »

I do apologise for the confusion :) and I know what happened.. I just noticed I never used the custom telemetry screen yet as I never needed it till now.. And I didn't know er9x had the 2 bars at the bottom..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
rainer
Posts: 391
Joined: Tue Jan 01, 2013 9:20 pm
Country: Germany
Location: near Düsseldorf

Re: AW: Simple vario for er9x

Post by rainer »

MikeB wrote:What units are the Vspd in? I'm looking at that at present. FrSky seem to send cm/sec, to the nearest 50, on their new vario. I was going to change the display by dividing the FrSky value by 100 and displaying 1 decimal place.
Same for the voice output.

Mike.
I use pure cm/s in the oXv.

Gesendet von meinem GT-I9300 mit Tapatalk 2
build your own vario ==> https://github.com/openXsensor/openXsensor/wiki (Formerly https://code.google.com/p/openxsensor/ and https://code.google.com/p/openxvario/)
barluk
Posts: 5
Joined: Fri Jun 14, 2013 6:39 am
Country: -

Re: Simple vario for er9x

Post by barluk »

Yes, it is custom telemetry screen in er9x. Vspd is in [0.1 m/s] per unit in my vario.
User avatar
MikeB
9x Developer
Posts: 17995
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Simple vario for er9x

Post by MikeB »

For consistency, perhaps you would change the value for Vspd into cm/s. Then everything is compatible.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
barluk
Posts: 5
Joined: Fri Jun 14, 2013 6:39 am
Country: -

Re: Simple vario for er9x

Post by barluk »

clear, no problem. I have one question, in custom switches in function v>ofs or v<ofs, ofs is in range 0-255, could you show me where it is in source code?, I want change it to signed value.
User avatar
MikeB
9x Developer
Posts: 17995
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Simple vario for er9x

Post by MikeB »

Is this specifically for Vspd? The ofs value depends on the type of v.
There is a routine:

// This routine converts an 8 bit value for custom switch use
int16_t convertTelemConstant( int8_t channel, int8_t value)

that configures the ofs value for use in custom switches.
I'll add:
case FR_VSPD :
result = value * 10 ;
break ;

which should sort this out, given I'm also dividing the displayed value by 10 in my latest code (not yet committed).
You may want:
case FR_VSPD :
result = value ;
break ;

For the unmodified code (value is a signed 8-bit integer, result is a signed 16 bit integer.

My modified code adds to:
uint8_t putsTelemetryChannel(uint8_t x, uint8_t y, int8_t channel, int16_t val, uint8_t att, uint8_t style)
#the code:
case FR_VSPD :
att |= PREC1 ;
val /= 10 ;
break ;

so the Vspd value displays as metres/sec to 1 decimal place.

I also add:
case FR_VSPD :
num_decimals = 1 ;
value /= 10 ;
break ;
to:
void voice_telem_item( int8_t index )

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
barluk
Posts: 5
Joined: Fri Jun 14, 2013 6:39 am
Country: -

Re: Simple vario for er9x

Post by barluk »

Thanks for your replay.

Post Reply

Return to “General RC Electronic Projects and Discussion”