HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Dec 12, 2012, 07:05 PM
I = V/R
Tw34k's Avatar
United States, FL, Jacksonville
Joined Aug 2012
61 Posts
Default "line" setting - cuts off bottom portion of overlay





With adjusted "line" variable, at 40.





As you can hopefully finally see, changing this variable just shifts the entire overlay up causing the top portion to now be cut off. I don't know how to be any more clear about this than I have been.

Simply put, the overlay (OSD) image needs to be shrunken down vertically, It's to tall to fit the screen

If you have anything specific you need from me, please do tell.
Tw34k is offline Find More Posts by Tw34k
Last edited by Tw34k; Dec 12, 2012 at 07:51 PM.
Reply With Quote
Sign up now
to remove ads between posts
Old Dec 13, 2012, 08:31 AM
Stop me before I build again!
United States, NY, Albany
Joined Sep 2012
1,320 Posts
Quote:
Originally Posted by Tw34k View Post
Simply put, the overlay (OSD) image needs to be shrunken down vertically, It's to tall to fit the screen
Config.h what is your VIDEO_SYSTEM?

Code:
//===========================
// Video system: PAL or NTSC
//===========================
// Pal = 0, NTSC = 1
#define VIDEO_SYSTEM 0
Are you trying to overlay a PAL OSD on NTSC signal?
brontide is offline Find More Posts by brontide
Reply With Quote
Old Dec 13, 2012, 12:59 PM
I = V/R
Tw34k's Avatar
United States, FL, Jacksonville
Joined Aug 2012
61 Posts
The config is set to 1 (NTSC)

The camera out is also set to NTSC @ 4:3 aspect ratio.

I briefly came across a post last night where someone else had similar issues, said it had something to do with the latest version of code not working well. All of the previous versions are in .doc format for some reason so until I get the chance to sit down at one of my other computers I'm at a stand still.
Tw34k is offline Find More Posts by Tw34k
Reply With Quote
Old Dec 13, 2012, 02:13 PM
Stop me before I build again!
United States, NY, Albany
Joined Sep 2012
1,320 Posts
Quote:
Originally Posted by Tw34k View Post
All of the previous versions are in .doc format for some reason so until I get the chance to sit down at one of my other computers I'm at a stand still.
No, the file ends in .doc ( probably because the attachment system here is screwy ) but the files themselves are just .cpp/plain text.
brontide is offline Find More Posts by brontide
Reply With Quote
Old Dec 13, 2012, 06:04 PM
Registered User
bob4432's Avatar
United States, AZ
Joined May 2010
1,820 Posts
from the first post:

Quote:
The code can be opened with notepad++ or Arduino IDE. Please rename to .pde instead of .txt when using with Arduino.
bob4432 is offline Find More Posts by bob4432
Reply With Quote
Old Dec 13, 2012, 10:27 PM
I = V/R
Tw34k's Avatar
United States, FL, Jacksonville
Joined Aug 2012
61 Posts
Version 17 seems to work so far, the screen fitment issue looks to be gone.
Tw34k is offline Find More Posts by Tw34k
Reply With Quote
Old Dec 14, 2012, 01:41 AM
HOL
Registered User
Danmark, Midtjylland, Galten
Joined Oct 2011
36 Posts
Quote:
Originally Posted by Tw34k View Post
Default "line" setting - cuts off bottom portion of overlay





With adjusted "line" variable, at 40.





As you can hopefully finally see, changing this variable just shifts the entire overlay up causing the top portion to now be cut off. I don't know how to be any more clear about this than I have been.

Simply put, the overlay (OSD) image needs to be shrunken down vertically, It's to tall to fit the screen

If you have anything specific you need from me, please do tell.
Your cam output is 4/3 but the screen is 16/9 (I think). Perhaps the screen is streching the picture to fit the wider format. Look at Your screen setup.
HOL is offline Find More Posts by HOL
Reply With Quote
Old Dec 14, 2012, 01:45 AM
I = V/R
Tw34k's Avatar
United States, FL, Jacksonville
Joined Aug 2012
61 Posts
No, I had already tried changing aspect ratio, it only cuts off the sides when changed. It seems it is in fact a version 18 issue, solved by using version 17 instead. I'll try and post some follow up pictures tomorrow.
Tw34k is offline Find More Posts by Tw34k
Last edited by Tw34k; Jan 04, 2013 at 02:38 PM.
Reply With Quote
Old Dec 14, 2012, 02:59 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
815 Posts
There is a little bug in the NTSC settings in software version 0.18 mentioned before. As far as I rememer, it was a simple mistake with some capital-letters that makes NTSC-setting faulty.

If you can please check the #if VIDEO_SYSTEM routine
Dennis Frie is online now Find More Posts by Dennis Frie
Reply With Quote
Old Dec 14, 2012, 03:01 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
815 Posts
Line 154 in config. If you can please try to change "#if (video_system == 0)" to:
#if (VIDEO_SYSTEM == 0)


This is the code-part where it's used:
#if (video_system == 0)
// PAL
#define toplinetext 41
#define toplinenumbers 51
#define butlinenumbers 271
#define timer_line 252
#define gps_nmea_line 32
#define summaryline 102
#define current_calc_line 292
#else
//NTSC
#define toplinetext 24
#define toplinenumbers 34
#define butlinenumbers 229
#define timer_line 210
#define gps_nmea_line 15
#define summaryline 100
#define current_calc_line 260
#endif
Dennis Frie is online now Find More Posts by Dennis Frie
Reply With Quote
Old Dec 29, 2012, 02:27 AM
No!
kolin's Avatar
Czech Republic, Hlavní město Praha, Prague
Joined Jan 2010
32 Posts
Successful build

Hi
I would like to thanks Dennis Frie and other contributors for such great project!
I realized DIYOSD with LM1881 on breadboard from bare components (no stupid arduino pro mini), recycled GPS module from remzibi and it simply works!

Next time I would design proper PCB, probably cheap single sided without mask, as breadboard is too laborious and not pretty at all.

Can't wait to try it in air.
Thanks!
kolin is offline Find More Posts by kolin
Reply With Quote
Old Dec 29, 2012, 03:02 AM
Registered User
bob4432's Avatar
United States, AZ
Joined May 2010
1,820 Posts
nice
bob4432 is offline Find More Posts by bob4432
Reply With Quote
Old Dec 29, 2012, 07:32 AM
Registered User
rimshotcopter's Avatar
United States, CA, Los Angeles
Joined Aug 2009
11,692 Posts
Quote:
Originally Posted by kolin View Post
Hi
I would like to thanks Dennis Frie and other contributors for such great project!
I realized DIYOSD with LM1881 on breadboard from bare components (no stupid arduino pro mini), recycled GPS module from remzibi and it simply works!

Next time I would design proper PCB, probably cheap single sided without mask, as breadboard is too laborious and not pretty at all.

Can't wait to try it in air.
Thanks!
Great Job kolin, there is no shame in bread boarding providing we only want a limited number of systems.

Here is my LM1881 bread boarding project based upon Dennis' design, it sits on top of an Arduino ATMEGA1280 and run MultiWii Firmware. The OSD is mobiDroneOSD.

There is STILL Life in the LM1881 design.
rimshotcopter is online now Find More Posts by rimshotcopter
Reply With Quote
Old Jan 04, 2013, 08:55 AM
Registered User
Joined Jan 2013
4 Posts
I've been testing DIYOSD on a breadboard with an Arduino UNO and an old TV. I had to adjust the line settings pretty dramatically for it to all show up on the screen. I thought I would post this for those having trouble with the top/bottom being cut off.

Here are my NTSC settings:

Code:
  //NTSC
  #define toplinetext 54
  #define toplinenumbers 64
  #define butlinenumbers 214
  #define timer_line 195
  #define gps_nmea_line 45
  #define summaryline 90
  #define current_calc_line 260
Here's what it looks like:



Cheers,

- Jason
jasonash is offline Find More Posts by jasonash
Reply With Quote
Old Jan 04, 2013, 09:00 AM
Registered User
kristaps_r's Avatar
Latvia, Riga
Joined May 2010
658 Posts
Old TVs cut a lot but Goggles and recorders don't so no adjustments needed unless you are taking your old TV to field
kristaps_r is offline Find More Posts by kristaps_r
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Diy osd karl k FPV Talk 2 May 03, 2011 12:31 AM
Idea New DIY OSD? atari7202 FPV Talk 1 Mar 25, 2011 12:08 AM
Discussion see my own diy OSD video Passion Aerial Photography 7 May 27, 2010 01:28 AM
Discussion REAL homebrew DIY OSD - Check it out! jafoca FPV Talk 8 Jun 29, 2009 06:52 PM
Discussion picoOSD DIY PIC12F683 based OSD in C kbosak FPV Talk 6 Jan 31, 2008 07:47 AM