Video Overlay Display. Hidden Feature?

 
#1

Has anyone else discovered the video overlays in the camera control? I just discovered this and I haven't seen a topic on it so I thought I would post.... While the camera is on, right click on the video image and you can embed a text overlay on the video image itself... Sort of like a HUD... I have in one of my projects a ping distance sensor displayed on the video image...

#2

I've had overlays, Melvin has his battery voltage and the time/date overlaid. But you are right, it isn't something which is documented and rarely mentioned.

#3

thats good

User-inserted image

User-inserted image

#4

Thanks for that. It was something I did not know. It is a neat feature to have.

#5

Neato Burrito! Good find Richard Grin

#6

Can someone provide an example of the code you put into the window so you can for example; overlay real time data, such as the battery voltage of the EZB v4, date and time, ping sensor data?

#7

The overlay uses variables. Your variables may change depending on what scripts you have and if you have changed any settings. To see all variable names add the variable watcher (this is the simplest method, there are others).

Then, for the overlay simply use the variable name i.e. $Hour

#8

Cool love it Grin
It also works on v3 Grin

#9

One line of code will do that... Here is an example to display the voltage level.... You can add more than one overlay, by the way....

Code:


"volts= "+GetVoltage()

#10

@Richard are script commands allowed in there? I haven't used it for a while but thought it was only actual variables (however it wouldn't surprise me to learn script commands such as GetVoltage() GetPing(D7, D8) etc work