HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Apr 20, 2013, 06:58 PM
Registered User
bob4432's Avatar
United States, AZ
Joined May 2010
1,824 Posts
Dennis,
Now bare(bear?) with me as my memory is not good, but didn't Ascended who made his own current sensor also code support for the MS5611? Were you going to add that baro support?

Bob
bob4432 is offline Find More Posts by bob4432
Reply With Quote
Sign up now
to remove ads between posts
Old Apr 21, 2013, 01:13 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,081 Posts
Quote:
Originally Posted by bob4432 View Post
Dennis,
Now bare(bear?) with me as my memory is not good, but didn't Ascended who made his own current sensor also code support for the MS5611? Were you going to add that baro support?

Bob
I think Ascended ended up using BMP085
I'll be writing the software so if he have used MS6511, I'll be adding support for that.

A more plug-n-play software version, will be available sooner or later - with the hardware from Ascended in mind as well. . Autobaud detection was the first step, more menu options and auto PAL/NTSC detection is planned.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Apr 21, 2013, 05:02 PM
Registered User
Joined Sep 2010
2,424 Posts
I have another request, for you to fix that bug so bmp085 and mpu6050 would work together not fight themselves :P

So a nice artificial horizon.
msev is offline Find More Posts by msev
Reply With Quote
Old Apr 22, 2013, 01:24 AM
Registered User
Joined Sep 2011
32 Posts
Quote:
Originally Posted by Dennis Frie View Post
I've just written a fix, that should ensure this is no longer a problem
Would you mind to test, if I upload a test-version?
sure.. i can test it today or tomorrow..
this weekend I tested vario audio out (RSSI pin) and after filtering pressureDiff (simple average.. lowpass should be better) its super useful without glasses on.
Spejlo is offline Find More Posts by Spejlo
Reply With Quote
Old Apr 22, 2013, 02:27 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,081 Posts
Quote:
Originally Posted by msev View Post
I have another request, for you to fix that bug so bmp085 and mpu6050 would work together not fight themselves :P

So a nice artificial horizon.
Year, that's still one of the "bugs"
BMP085 don't like other I2C communication instead of delay..

Quote:
Originally Posted by Spejlo View Post
sure.. i can test it today or tomorrow..
this weekend I tested vario audio out (RSSI pin) and after filtering pressureDiff (simple average.. lowpass should be better) its super useful without glasses on.
The software-version is a mess atm, need to clean it a bit

The vario-output was planned anyway, just haven't had time to test it. Can I ask what rate of sound you use compared to lift/sink rate?
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Apr 22, 2013, 04:04 AM
Registered User
Joined Sep 2010
2,424 Posts
Quote:
Originally Posted by Dennis Frie View Post
Year, that's still one of the "bugs"
BMP085 don't like other I2C communication instead of delay..
Multiwii has it sorted out. Maybe you should look how those guys are doing it? Or I could ask some developer for a bit of help over there since I'm a member of that forum.
msev is offline Find More Posts by msev
Reply With Quote
Old Apr 22, 2013, 04:24 AM
Registered User
Joined Sep 2011
32 Posts
Quote:
Originally Posted by Dennis Frie View Post
The vario-output was planned anyway, just haven't had time to test it. Can I ask what rate of sound you use compared to lift/sink rate?
I'm not sure right now (source code is at home).. but I think pressureDiff*4 + 510
but you should filter pressureDiff (without it it's jumping 0.5m/s up and down)
for now it's 5 line (or so) code vario in write_pressure_diff() procedure but i will change it and add battery/RSSI alarm
later I post exact code for my simple vario
Spejlo is offline Find More Posts by Spejlo
Reply With Quote
Old Apr 22, 2013, 04:28 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,081 Posts
Quote:
Originally Posted by Spejlo View Post
I'm not sure right now (source code is at home).. but I think pressureDiff*4 + 510
but you should filter pressureDiff (without it it's jumping 0.5m/s up and down)
for now it's 5 line (or so) code vario in write_pressure_diff() procedure but i will change it and add battery/RSSI alarm
later I post exact code for my simple vario
The pressure-data is already LP filtered, you can adjust the filter-values in the config-file, to get more stable output
But ofc a second LP filter can be used if necessary.

Just out of curiosity, now that you have actually been through some of the code etc. Is it easy readable with the comments etc. or still a bit of a mess to get through?
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Apr 22, 2013, 06:01 AM
Registered User
Joined Sep 2011
32 Posts
if I can understand your code.. anyone can
but with comments is a lot easier to find what you want..
Spejlo is offline Find More Posts by Spejlo
Reply With Quote
Old Apr 22, 2013, 12:02 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,081 Posts
Just updated the software a bit..

The following can now be changed in the menu-system:
- Show PPM
- Volt alarm
- mAh alarm
- Volt cal
- Cur cal
- Video mode (pal or ntsc)

Menu 2, show:
- Avg mah/km
- cur mah/km
- km left (at current speed and power-usage)
- timer
- plane angle
- thermal bar
- Units (SI or imperial)

Did I forget anything important?

Found a bug with the thermal-bar in NTSC mode, which have been corrected.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Apr 22, 2013, 12:28 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,081 Posts
I've uploaded a new version..
http://code.google.com/p/diy-osd-max7456/downloads/list

Some feedback would be great

The main focus in this update, have been easy configuration. No configuration should be necessary in the config-file, as all important things can be changed in the menu (with PPM-signal connected).

Main changes:
  • Auto baud-detection
  • 115200 baud added - but not recommended due to the error-rate with 16MHz crystal
  • GPS-routine not running within interrupt as default. Should prevent PPM-frames from being dropped and solve problem with certain Ublox GPS-modules (specific Ublox module not verified to work yet)
  • A lot of extra menu-options.
  • Video-system and units can be changed in menu
  • Heater-control for weather-balloon
  • Low resolution servo-output for weather-ballon project (releases if failsafe is present more than x seconds)
Dennis Frie is offline Find More Posts by Dennis Frie
Last edited by Dennis Frie; Apr 22, 2013 at 04:25 PM.
Reply With Quote
Old Apr 22, 2013, 01:15 PM
FpvQc
BillyJo's Avatar
Canada, QC, Quebec
Joined Jan 2008
155 Posts
thanks again Dennis for the support and update to make this little OSD better and better !
BillyJo is offline Find More Posts by BillyJo
Reply With Quote
Old Apr 22, 2013, 02:57 PM
Registered User
Joined Sep 2011
32 Posts
vario rate I'm using is: varioFreq = constrain((pressureDiff*(-4)), -500, 500)+510;
i think I see this numbers somewhere online.. I can post full code for vario if someone want it.. but its ugly and not in the right place in code

denis: I try to test new GPS tomorrow
Spejlo is offline Find More Posts by Spejlo
Reply With Quote
Old Apr 22, 2013, 03:02 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,081 Posts
Quote:
Originally Posted by Spejlo View Post
vario rate I'm using is: varioFreq = constrain((pressureDiff*(-4)), -500, 500)+510;
i think I see this numbers somewhere online.. I can post full code for vario if someone want it.. but its ugly and not in the right place in code

denis: I try to test new GPS tomorrow
Thanks
I'll implement a vario-function sooner or later and ask a friend to test it, in a descent glider, so we can get it dialed in properly.

No hurry with the GPS-test, but when you get a chance to test, it would be nice to get it verified

But it have been changed quite a bit to run outside the interrupt, should definitely solve the problem
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Apr 22, 2013, 03:18 PM
Registered User
Joined Sep 2011
32 Posts
Quote:
Originally Posted by Dennis Frie View Post
Thanks
I'll implement a vario-function sooner or later and ask a friend to test it, in a descent glider, so we can get it dialed in properly.

No hurry with the GPS-test, but when you get a chance to test, it would be nice to get it verified

But it have been changed quite a bit to run outside the interrupt, should definitely solve the problem
yeah I see it calculate outside interrupt and using 2 buffers..it should be OK..
and I almost forgot..I found another (not exactly) bug.. in summary max_alt is updated only from GPS and not from baro when REPLACE_GPS_ALT is enabled.
it's not bug but it will be nice to have more precise altitude logged..
Spejlo is offline Find More Posts by Spejlo
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Help! OSD version UNKNOWN and fail to update (error) dROb Eagle Tree Systems 9 May 16, 2012 06:12 PM
Sold EASY OSD (Version 1.2) Brand New . $75 shipped. LHTPlane FPV Equipment (FS/W) 7 Mar 20, 2012 11:45 PM
For Sale MAX7456 OSD Break out board. ziomatrixacs FPV Equipment (FS/W) 4 Jun 18, 2011 04:50 PM