PowerShot SX230 HS - Porting Thread - page 42 - General Discussion and Assistance - CHDK Forum

PowerShot SX230 HS - Porting Thread

  • 706 Replies
  • 331209 Views
Re: PowerShot SX230 HS - Porting Thread
« Reply #410 on: 21 / December / 2011, 14:25:20 »
Advertisements
One last note - the stratos.bas script is pretty sophisticated.  Maybe what you want is a really simple script that simply takes a picture in full auto mode every 60 seconds.   I expect there will be a lot of excitement at launch and things get overlooked so maybe the script should be setup to start running as soon as you turn the camera on.  I can give you a hand  with that.

A script like that would be wonderful. I might just use that as my got to script. Could it be designed so the 60 second variable could be change at will? There will be a lot of excitement launch day and there will be a lot to do! I might look like organized confusing......

Re: PowerShot SX230 HS - Porting Thread
« Reply #411 on: 21 / December / 2011, 14:35:37 »
A script like that would be wonderful. I might just use that as my got to script. Could it be designed so the 60 second variable could be change at will? There will be a lot of excitement launch day and there will be a lot to do! I might look like organized confusing......

Thats pretty much the one I posted above.  Here it is again but with a default value of 60 seconds.  It should "Autostart" better than your current one - I added the hack to switch automagically into shooting mode when it starts. Probably the only other thing missing is a command to turn off the LCD and save you a little battery power on the flight (remember to also turn off the "review" mode in the Canon menus)
Code: [Select]
@title Intervalometer
@param a = interval (sec)
@default a 60
 
if get_mode = 0 then goto "in_rec"
  sleep 1000
  set_record 1
:wait_rec
  sleep 100
  if get_mode <> 0 then goto "wait_rec"
:in_rec

do
    s = (a*1000)+get_tick_count
    shoot
    sleep 2000
    set_backlight 0
    do
       sleep 500
    until (s <= get_tick_count)
until ( 0 )

:restore
    set_backlight 1
    sleep 1000
    end
 

It would be interesting to hear if any of your grade 7/8 students catch on to how this works and come up with "improved" versions.

UPDATE : changed script a bit so that backlight is turned on when script is ended.
« Last Edit: 28 / December / 2011, 11:45:52 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX230 HS - Porting Thread
« Reply #412 on: 22 / December / 2011, 09:55:33 »
Can you add the command to turn off the LCD? I already disabled the review mode.

Thanks!

Re: PowerShot SX230 HS - Porting Thread
« Reply #413 on: 22 / December / 2011, 15:59:50 »
Can you add the command to turn off the LCD? I already disabled the review mode.
Yes - I'll update the one posted above and send you a PM when its done ( later today ).
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX230 HS - Porting Thread
« Reply #414 on: 28 / December / 2011, 10:50:23 »
Oddly enough we too launched our sx230HS into space:
http://maxphotoblog.com/wall.aspx/View/max/occupy%20space
I'll try to make the blog post with full descriptions later today.

On the CHDK side.  I, being on a time constraint used the script above.  45s intervals.

Findings:
-The screen still turns on for 1 second after every photo even when review is off.
-Couldn't seem to get rid of photo beep... no matter it proved helpful when it was inserted and taped in.
-Lasted about 2 hours with GPS turned ON  :( my only regret as the balloon did go higher.
-Set it to Landscape mode and manual focused to infinity, This worked swimmingly.

Questions:
?Does anyone know of any external power sources for this camera (for our next launch)
?Has anyone been able to get it working for longer periods than two hours

The fact that this camera logs GPS position is extremely useful.  If you click download on the photo you can view the metadata and get the height in meters.

Re: PowerShot SX230 HS - Porting Thread
« Reply #415 on: 28 / December / 2011, 11:06:09 »
Findings:
-The screen still turns on for 1 second after every photo even when review is off.
This is normal - I don't think there is any way around it.

However, I do keep meaning to add a :restore section to that script so that the LCD turns on again when you interrupt the script by pressing the shutter button.  <- DONE

Quote
Questions:
?Does anyone know of any external power sources for this camera (for our next launch)
When I get a moment,  I'm going to try something like this : http://chdk.setepontos.com/index.php?topic=5112.msg78326#msg78326.  It should work for you too if you can't find anything better.

UPDATE : I went back and modified the script in my previous post so that it restores the backlight when the script is interrupted by the shutter button.
« Last Edit: 28 / December / 2011, 11:48:14 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX230 HS - Porting Thread
« Reply #416 on: 28 / December / 2011, 12:05:23 »
I was hoping to find script examples of GPS logging.  But my understanding is that CHDK does not have access to the GPS?
Imagine adjusting the script to take way more photos in the higher altitudes.
Or turning the camera balloon on for recon work over a location.

Re: PowerShot SX230 HS - Porting Thread
« Reply #417 on: 28 / December / 2011, 12:24:39 »
I was hoping to find script examples of GPS logging.  But my understanding is that CHDK does not have access to the GPS?
I agree with you,  it would be a nice function to have.  But as GPS functionality is fairly new on Canon P&S cameras,  I don't believe that anybody has looked at providing a simple scripting interface.

Having said that,  there is a propertycase called PROPCASE_GPS assigned a value of 359 (with comment that its for the sx230hs).  I have no idea what is stored in there but it might allow interesting things to be done from a script.  It contains a lot of useful information, which CHDK seems to use for EXIF info in the DNG header.

Code: [Select]
typedef struct {
    int latitudeRef;
    int latitude[6];
    int longitudeRef;
    int longitude[6];
    int heightRef;
    int height[2];
    int timeStamp[6];
    short status;
    char mapDatum[7];
    char dateStamp[11];
    char unknown2[260];
} tGPS;

With a little work,  it looks like this should be usable from a script too!

Otherwise,  the fancier balloon scripts rely on simple "time of ascent" assumptions to change their shooting modes during the flight.  That seems to be satisfactory for most applications.
« Last Edit: 28 / December / 2011, 12:37:13 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: PowerShot SX230 HS - Porting Thread
« Reply #418 on: 28 / December / 2011, 14:09:41 »
That is a bummer on the two hour battery life. Was hoping to get 3-3.5 hours. Do you think turning the GPS feature off would save that much battery life?

I will have a RTrak-HAB on board the payload and I think I think the kids can match the data packets up with the pictures based on the time stamp to get a pretty good idea as to where the camera was when the picture was taken. If they can get to within 500 feet up or down and I think we would be OK.

Do you know any other way to extend the battery life?

The picutres that camera takes are spectacular. With the widescreen feature were we hoping to blow a couple up and have them printed for the hallway at school. I have a poster printer in my office that would work well for that.

Good info here. Glad you came and shared your results. I do like the fact that the camera attaches the altitude on the picture. Did not know the camera would do that.

Re: PowerShot SX230 HS - Porting Thread
« Reply #419 on: 28 / December / 2011, 14:17:10 »
Do you know any other way to extend the battery life?
One simple thing that might help - take a picture every 2 minutes rather than every minute.

As to the gps power,  I suppose you could test what that cost you pretty easily.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal