It's reassuring that someone else had same problems and created almost exactly same code
I've had same problem - overexposure was caused by wrong CAM_PROPSET in camera.h - CHDK couldn't read current Tv value from firmware.
Progress update:
What is working:
- Edge overlay
- Zebra
- Overrides
- Quality override
- RAW capture, including DNG and RAW file in dir with JPG
What isn't working:
- Video parameters - not ported yet
- Histogram colours
- LUA Scripts with long titles crash camera when loaded, for example romlog.lua and uartrtst.lua
- Camera crashes! Probably because of low memory. Frequent crash places:
* When connecting camera to computer through USB cable (sometimes works when cable is connected before turning on camera)
* Load script in playback mode
* Canon menu in playback mode, when camera is started in playback mode