Timer in firmware

For anyone interested, I've tweaked the OSD firmware to add a timer and a " time to battery empty" indicator.

The timer is very simple and just starts counting when the speed is over 3m/s so you can get the flight time

The time left function attempts to give you an idea of how much time is left until your battery hits a hard coded 11.1v . Thus it's only useful for 3 cells right now, but I'm adding a feature to let you set what the min voltage should be.

It works in a pretty simple way - it just checks the battery voltage every 30 seconds and uses the last five readings to construct a linear regression and then estimate the time left until the battery hits 11.1v.

Of course if you are putting the throttle up and down and doing aerobatics it will be very wrong, but for steady autonomous flying between waypoints it is reasonably useful. The first readings won't appear until after 3:00 of flight when it has the first five readings.

Anyway, just a bit of fun. The attached zip has an updated OSD_config.exe with two new features of Timer and TimeLeft. There is also the new firmware hex file in there with the features that you will need to upload using the OSD_Config tool.

This is kind of alpha, so please don't use if you are relying on your OSD for life and death work!

I've got some ideas to make the OSD and config tool a lot more flexbile in terms of what you can display in there so will try and see how far I can push it over the next few months - when I get some spare time!

Regards

James

OSD_Config.zip

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi James,

    I am interested! :)

    Could you share the code you inserted?

    I have also made a few changes by the help of the community, like airspeed, home alt, etc. 

    I was planning to add flight time also, but as you have already made it, it would be nice to use it. :)

    We can put together a version that does it all, if that is ok with you. ;)

This reply was deleted.

Activity