Hi @tony-white
Thanks a lot for the offer! I’ve never written in Lua, but it would be great to be able to integrate camera control into Cockpit.
I’ve recently finished writing my own code for controlling camera parameters via the joystick.
I’ve written it in python and exported it to exe to run on Windows, and it’s based on cgi commands sent via request through keyboard keys, which I convert into joystick buttons using Antimicro.
The buttons can be customized, that’s why I decided to use Antimicro, but I also have a joystick mapping that I recommend for use and that is tested and I’ll share it soon.
With this software I can control the following parameters: zoom, focus, brightness, contrast, ISO, shutter, white balance auto/manual (WB_blue, WB_red), antifog, WDR, hight ligth compensation, back ligth compensation, plus a combination of buttons to record video and take photos directly on the SD.
The software runs in the background, simply at the beginning it requests the user, password and IP data of the camera and then you have a mini window, at the bottom right, which is superimposed on Qgroundcontrol or Cockpit, where it indicates the changes of the parameters used and it is easier to control. I will share a video of its use soon.
It would also be great to convert this code to Lua and integrate it into Cockpit, but I don’t know if my programming level would allow me to do it. If you are ok with it, I can send you the Python code and you can tell me how you see it to adapt it to Lua.
Regards