SMALL - espritmodel.com SMALL - Telemetry SMALL - Radio
Reply
Thread Tools
Old Oct 05, 2011, 03:56 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
Quote:
Originally Posted by FPVdude View Post
two questions:
what plane is used in the test video? I love flying wings, that's why i'm asking.

Is there any way to make this osd display in US units? could I output something to the GPS so it sends back data if feet/mph instead of metric stuff? or am I just totally wrong and it actually is already in feet/mph?

I would just test it but parts are still in the mail and my arduino died
or do I just have to learn meters/stuff like that?
It's a Maxi swift used in the test-film. Most videos here have been recorded with the Maxi Swift:
http://www.vimeo.com/user6165375

The units are meters, km/h etc.
Tell you what, if you write the units you want and the conversion factor from meters, km/h etc. I'll include it as an option in the next release.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Sign up now
to remove ads between posts
Old Oct 05, 2011, 05:59 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
I'm a little busy at the moment, but so far this is the few things I have found that should be done in next release. Anything else?
  • Support for US units
  • Plane position (degrees) in regard to your position
  • Remove dimming from not active characters
  • Write software version on start-up
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Oct 05, 2011, 07:18 PM
Registered User
rimshotcopter's Avatar
United States, CA, Los Angeles
Joined Aug 2009
11,706 Posts
Quote:
Originally Posted by Dennis Frie View Post
I'm a little busy at the moment, but so far this is the few things I have found that should be done in next release. Anything else?
  • Support for US units
  • Plane position (degrees) in regard to your position
  • Remove dimming from not active characters
  • Write software version on start-up
Would be nice to check for GPS unit on start-up and if not present, display current and voltage information instead.
rimshotcopter is online now Find More Posts by rimshotcopter
Reply With Quote
Old Oct 05, 2011, 08:51 PM
Registered User
Australia
Joined Mar 2010
156 Posts
Quote:
Originally Posted by FPVdude View Post
two questions:
what plane is used in the test video? I love flying wings, that's why i'm asking.

Is there any way to make this osd display in US units? could I output something to the GPS so it sends back data if feet/mph instead of metric stuff? or am I just totally wrong and it actually is already in feet/mph?

I would just test it but parts are still in the mail and my arduino died
or do I just have to learn meters/stuff like that?
A quick hack that should work (unverified) is:
change line 3674 from:
speedkm=(speedkm*18.52)/10;
to:
speedkm=(speedkm*11.51)/10;


line 3734, add the following:
altitude_num*=3.281;

The main problem I can see with this will be the altitude will exceed the number of digits allowed.
android78 is offline Find More Posts by android78
Reply With Quote
Old Oct 06, 2011, 07:55 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
Quote:
Originally Posted by android78 View Post
A quick hack that should work (unverified) is:
change line 3674 from:
speedkm=(speedkm*18.52)/10;
to:
speedkm=(speedkm*11.51)/10;


line 3734, add the following:
altitude_num*=3.281;

The main problem I can see with this will be the altitude will exceed the number of digits allowed.
That should be right
The altitude will be limited to 9999,9 feet - but I will fix that when the first one gets higher than 5000 feet (with this OSD project)

Same thing goes with LOS, just multiply with 3.281. But again, it will limit the LOS calculation to 9999 feet.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Oct 06, 2011, 08:57 AM
Registered User
Italia, Lombardia, Milano
Joined Jun 2010
146 Posts
Quote:
Originally Posted by Dennis Frie View Post
That should be right
The altitude will be limited to 9999,9 feet - but I will fix that when the first one gets higher than 5000 feet (with this OSD project)

Same thing goes with LOS, just multiply with 3.281. But again, it will limit the LOS calculation to 9999 feet.
OK, stay tuned and ready to modify, I will try now to go so far
(I'm jocking of course as I never flown in FPV but will try soon).
Ciao
carlonb is offline Find More Posts by carlonb
Reply With Quote
Old Oct 06, 2011, 09:54 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
Quote:
Originally Posted by carlonb View Post
OK, stay tuned and ready to modify, I will try now to go so far
(I'm jocking of course as I never flown in FPV but will try soon).
Ciao
I'm totally ready
Just upload a picture/video with your distance/height (> 5000 ft) and I will update the software to support more than 9999 ft.

With meters i figured it would take some time before anyone dared to take it more than 10 km away. With feets it will probably be done pretty pretty quickly (only 3 km as max)
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Oct 06, 2011, 10:02 AM
Registered User
Joined Feb 2007
2,071 Posts
Will this work with the nootropic video shield? I'm planning on putting this in a ground vehicle so using an UNO isn't a big deal as weight is not an issue.
healthyfatboy is offline Find More Posts by healthyfatboy
Reply With Quote
Old Oct 06, 2011, 10:05 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
Quote:
Originally Posted by healthyfatboy View Post
Will this work with the nootropic video shield? I'm planning on putting this in a ground vehicle so using an UNO isn't a big deal as weight is not an issue.
I haven't tried, but as the shield uses a LM1881 which is supported (choose SimpleOSD OPEN as controller) it should be pretty straight forward.

But I can't promise anything
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Oct 09, 2011, 08:16 AM
MelihK's Avatar
United Kingdom, England, Canterbury
Joined May 2008
1,366 Posts
Hi Dennis,

I was reading your code and i didnt understand some points about serial communication with GPS. Can you explain me about that?

1- I saw these code part
Code:
Serial.begin(baud);
 UBRR0H = (unsigned char) (baud_settings>>8);
 UBRR0L = (unsigned char) (baud_settings);
// UBRR0H = 0b00000000;
// UBRR0L = 103;
 UCSR0A = 0b0000000;
 UCSR0B = (1<<RXEN0) | (1<<TXEN0);
 UCSR0C = (3<<UCSZ00);
Why you are using register settings after "Serial.begin(baud);"? i guess, Serial.Begin command making same thing with these register set commands.

2- Why you are using these AVR-GCC code part? it is same thing with Serial.available and serial.read commands and more readable for arduino users. I'm an GCC programmer, current code looking more friendly for me but not for arduino newbies.
Code:
SPDR =0b00000000;
       if (UCSR0A & (1<<RXC0)) {
        GPSbuffer[bufnr] = UDR0;


        bufnr++;
I guess you are using these codes for interrupt free coding, am i right?

Thanks
Melih
MelihK is offline Find More Posts by MelihK
Site Sponsor
Reply With Quote
Old Oct 09, 2011, 08:32 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
Quote:
Originally Posted by MelihK View Post
Hi Dennis,

I was reading your code and i didnt understand some points about serial communication with GPS. Can you explain me about that?

1- I saw these code part
Code:
Serial.begin(baud);
 UBRR0H = (unsigned char) (baud_settings>>8);
 UBRR0L = (unsigned char) (baud_settings);
// UBRR0H = 0b00000000;
// UBRR0L = 103;
 UCSR0A = 0b0000000;
 UCSR0B = (1<<RXEN0) | (1<<TXEN0);
 UCSR0C = (3<<UCSZ00);
Why you are using register settings after "Serial.begin(baud);"? i guess, Serial.Begin command making same thing with these register set commands.

2- Why you are using these AVR-GCC code part? it is same thing with Serial.available and serial.read commands and more readable for arduino users. I'm an GCC programmer, current code looking more friendly for me but not for arduino newbies.
Code:
SPDR =0b00000000;
       if (UCSR0A & (1<<RXC0)) {
        GPSbuffer[bufnr] = UDR0;


        bufnr++;
I guess you are using these codes for interrupt free coding, am i right?
The code is still a bit of a mess

I quickly realized that Arduino commands/code is pretty slow - so I have more or less tried not to use Arduino-commands.
The Serial initialization only have to be done at startup - so it's not time critical at all and should just be replaced with Serial.begin(baud).
The Serial.begin was originally just added to be able to use Serial.print for test and GPS-config, but it would make more sense just to keep Serial.begin and delete the rest.

When reading the serial data I had problems with Arduino using interrupts. It's very easy to see the screen flicker everytime it receives data.
Anyway, I got annoyed with the Arduino-commands as I wasn't really aware how they worked and just used AVR-GCC code. Then I know exactly what it does
Yes - used for interrupt free serial reading.

I'm not exactly a code-export, and I'm sure a lot of things could have been done a lot smarter. Looking at the code now, there is quite a few things that could have been made better - but it works.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Oct 09, 2011, 09:59 AM
MelihK's Avatar
United Kingdom, England, Canterbury
Joined May 2008
1,366 Posts
Hi Dennis,

Thank you very much for fast response.
Your gps code looking completed and readable and i like it.
I spend 1-2 hours and refined your GPS code part from OSD code. Its working flawlessly.

If you agree, I want tol add it into the OpenLRS project as a gps.pde file with your details (your name, contact details of your DIY-OSD project and "based from xxxxx" comments.)
And i want to send you an OpenLRS set. I hope you will like it
Can we do that?

An example usage: We can connect the DIY-OSD to OpenLRS receiver by serial cable and osd can send home direction and altitude to receiver(or all telemetry data to the ground telemetry system) and receiver can control the rudder and elevator for return to home function in case of link lost

Cheers
Melih
MelihK is offline Find More Posts by MelihK
Site Sponsor
Reply With Quote
Old Oct 09, 2011, 10:04 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
Quote:
Originally Posted by MelihK View Post
Hi Dennis,

Thank you very much for fast response.
Your gps code looking completed and readable and i like it.
I spend 1-2 hours and refined your GPS code part from OSD code. Its working flawlessly.

If you agree, I want tol add it into the OpenLRS project as a gps.pde file with your details (your name, contact details of your DIY-OSD project and "based from xxxxx" comments.)
And i want to send you an OpenLRS set. I hope you will like it
Can we do that?

Cheers
Melih
Hi Melih
I'm glad you like it. It's all written as a fun hobby project, and I'm just happy to see it being used. You are more than welcome to use it in OpenLRS etc.

It would be great to try your OpenLRS project. It would be fun to develop a bit on that as well.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Oct 09, 2011, 10:09 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
1,036 Posts
Quote:
Originally Posted by MelihK View Post
Hi Dennis,

An example usage: We can connect the DIY-OSD to OpenLRS receiver by serial cable and osd can send home direction and altitude to receiver(or all telemetry data to the ground telemetry system) and receiver can control the rudder and elevator for return to home function in case of link lost

Cheers
Melih
Chances are you just ruined the rest of my spare-time
No, it would be fun, it have quite a few possibilities.

OpenLRS is a very nice initiative, and it should give a lot of opportunities. I have considered to make a cheap IMU with gyro and accelerometer from nunchok and wiimotion plus. Could make an interesting and pretty cheap receiver and autopilot based on OpenLRS.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Oct 09, 2011, 10:11 AM
Registered User
CheckSum's Avatar
Joined Jan 2011
512 Posts
Very cool...What a great example of Open Source and its benefits.
Thanks guys!
CheckSum is offline Find More Posts by CheckSum
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 01:31 AM
Idea New DIY OSD? atari7202 FPV Talk 1 Mar 25, 2011 01:08 AM
Discussion see my own diy OSD video Passion Aerial Photography 7 May 27, 2010 02:28 AM
Discussion REAL homebrew DIY OSD - Check it out! jafoca FPV Talk 8 Jun 29, 2009 07:52 PM
Discussion picoOSD DIY PIC12F683 based OSD in C kbosak FPV Talk 6 Jan 31, 2008 08:47 AM