Copy the attached script to your Scripts folder, boot camera and load script.
It is speeded-up by a factor of 5x compared to the real mission.
Position the camera so that the lens is blocked from the light.
In the real mission this is when the camera is in the payload and a lenscap or similar is fitted.
Start the script.
The screen will blank and you will hear a beep every ten seconds to assure you the script is running.
After three minutes, it will start to check for lens cap removal and an led will be lit.
At any time after that, point the camera at brighter light.
The autofocus led will flash for five seconds to indication mission start and the setting of the mission elapsed-time clock to 00:00:00.
A 60 second lift-off movie will be taken followed by 5 minutes of fast shots every 30 seconds.
The desired shutter speed is 1/2000 sec at a maximum ISO of 160.
The ISO will be adjusted to suit or if 1/2000 cannot be achieved, the ISO will be set to 160 and the appropriate shutter speed used.
A 36 second higher altitude movie is recorded followed by a further 6 minutes of fast shots.
Next, 100 brightness readings are taken and sorted in ascending order.
The 50% to 80% brightest are then averaged and based on that brightness value exposure is calculated.
Calculated exposure is used for the rest of the ascent.
The idea of this method is to avoid incorrect exposures caused by the camera seeing large areas of black space or occasional direct views of the sun.
When you run the script, try covering the lens for the first fifty exposures, pointing at bright light for next twenty and at normal exposure for remaining thirty.
Five minutes of fast shots using computed exposure followed by 36 second high altitude movie.
(Descent phase is now assumed, no way of detecting this in mission I am helping with).
Four minutes of fast shots every three seconds using an exposure recalculated every twenty shots.
24 second movie.
Seven minutes of fast shots every three seconds using an exposure recalculated every twenty shots.
At this point, the movie and fast shots are continually repeated until mission ends, card full or battery exhausted.
In this version, rem goto "loop" disables the looping.
All of this is based on original work by member Francesco Bonomi who I have been unable to contact recently.
In folder CHDK you wil find LOG.txt that documents the mission and exposure for each image.