Asked — Edited

Video Overlay Display. Hidden Feature?

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...


ARC Pro

Upgrade to ARC Pro

Synthiam ARC Pro is a new tool that will help unleash your creativity with programming robots in just seconds!

United Kingdom
#1  

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  

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

#5  

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?

United Kingdom
#6  

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

Canada
#7  

Cool love it:D It also works on v3 :D

#8  

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....


"volts= "+GetVoltage()

United Kingdom
#9  

@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

#10  

@Rich... The above works for me, so does GetPing..... So the answer I guess is yes, albeit one script line only... However, you can have more than one overlay if you need a ping and maybe voltage reading as well....

United Kingdom
#11  

I guess something like this would also work...

"Ping: " + GetPing(D7,D8) + "Date: "+ $Date + "Time: " + $Time
#12  

@Rich... I just tried your code... works perfectly as an overlay....

#15  

https://synthiam.com/Community/Questions/2040