I have another question about the tv override.
If, from the CHDK menu, I set the Override Tv type to LongExp and the set an override time of, for example 00:05:00 I can get a picture of 5 minutes as expected.
Then I would like to do the same from a program that I am writing and I want to use the chdkptp to set the Override Tv time.
As far as I understood there are several lua methods implemented for this function that are:
set_tv96
set_tv96_direct
set_user_tv96
set_user_tv_id
set_user_tv_id_rel
The set_tv96 and set_tv96_direct to not produce any effect on the camera and when I do the equivalent get function I always get zero as return value.
The only method that seems to work for M10 camera is set_user_tv96.
Here I can specify the time value using the conversion function usec_to_tv96 and apparently the function sets the time correctly because the get_user_tv96 returns the value that I setup.
Unfortunately this value works correctly only up to 32 seconds (or -480), if I try to setup longer exposure time it will stay with 32 seconds, even if the get_user_tv96 gives the value that I setup.
Then I thought that I have to use another method (because I know from the camera menu that I can setup more than 32 seconds).
I found then the function set_user_tv_id that takes the ID from a list contained in the shooting.c file. The available shutter speed for canon M10 in that file starts wi the value:
-24, -768, "250", 250000000
That means that if I set as ID -24 I should have 250 seconds of exposure.
I try and the get_user_tv96 gives me back correctly -768, but the exposure time is still 32 seconds.
What am I doing wrong?