Author Topic: the sx10 porting thread  (Read 93378 times)

Offline tool46

  • Rookie
  • *
  • Posts: 10
Re: the sx10 porting thread
« Reply #570 on: 12 / October / 2009, 20:18:35 »
Fw 1.00c sx10-100c-0.9.8-808_BETA.zip I tested bracketing in DNG Av+- and Tv+- 1Ev did 10 sets  No problem. and no problems anywhere else that i know about.
Also this is a great camera for doing infared pictures.

Steve
sx10is eos 50d eos 1Ds Mark II eos 5D Mark II

Offline jetherson

  • Rookie
  • *
  • Posts: 12
Re: the sx10 porting thread
« Reply #571 on: 19 / October / 2009, 18:26:17 »
Is it possible to delete folders from within CHDK's file browser?

Offline hiker_jon

  • Full Member
  • ***
  • Posts: 215
Re: the sx10 porting thread
« Reply #572 on: 24 / October / 2009, 20:42:40 »
Has anyone noticed problems with mode_get() for SX10?  I have fw 1.03a.  I believe (unless my code is wrong) that mode_get() is returning MODE_PLAY when the camera is in record mode and the menu button is pressed.

A fix for me would be to detect that the menu button has been pressed.  Anyway to do that in record mode?

Jon

Offline hiker_jon

  • Full Member
  • ***
  • Posts: 215
Re: the sx10 porting thread
« Reply #573 on: 25 / October / 2009, 07:41:18 »
build 820 FW1.03a: In alt mode going from user menu to main menu causes two headings (main menu under user menu) and the bottom menu item (Debug Parameters) becomes unreachable.
This did not happen on my old SX10 1.02b.

Offline fe50

  • Guru Member
  • ******
  • Posts: 2608
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: the sx10 porting thread
« Reply #574 on: 25 / October / 2009, 15:49:02 »
build 820 FW1.03a: In alt mode going from user menu to main menu causes two headings (main menu under user menu) and the bottom menu item (Debug Parameters) becomes unreachable.
This did not happen on my old SX10 1.02b.

SX10 101a: after going to main menu, the screen is not refreshed, the old user menu is shown in the background - but all menu items from the main menu are visible & selectable, also the last item in the main menu: "Miscellaneous stuff".

I guess you've got "Debug parameters" in your user menu & you see this item in the (not refreshed) background...

Offline fe50

  • Guru Member
  • ******
  • Posts: 2608
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: the sx10 porting thread
« Reply #575 on: 25 / October / 2009, 19:33:50 »
Is it possible to delete folders from within CHDK's file browser?

Yes, place the selection bar to the folder & press the DELETE (TRASH) button...

Offline fe50

  • Guru Member
  • ******
  • Posts: 2608
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: the sx10 porting thread
« Reply #576 on: 25 / October / 2009, 19:48:26 »
Has anyone noticed problems with mode_get() for SX10?  I have fw 1.03a.  I believe (unless my code is wrong) that mode_get() is returning MODE_PLAY when the camera is in record mode and the menu button is pressed.

Tested with the Lua get_mode sample script on the Sx10 101a:
Yes, i'll get  rec: false when the Canon menu is open while the cam is in rec mode.

[OT]LOL...not sure to call this a bug since in this state the camera is in record mode, but can't really record...[/OT]

Offline hiker_jon

  • Full Member
  • ***
  • Posts: 215
Re: the sx10 porting thread
« Reply #577 on: 26 / October / 2009, 06:04:50 »
Has anyone noticed problems with mode_get() for SX10?  I have fw 1.03a.  I believe (unless my code is wrong) that mode_get() is returning MODE_PLAY when the camera is in record mode and the menu button is pressed.

Tested with the Lua get_mode sample script on the Sx10 101a:
Yes, i'll get  rec: false when the Canon menu is open while the cam is in rec mode.

[OT]LOL...not sure to call this a bug since in this state the camera is in record mode, but can't really record...[/OT]



One  thing for sure, the camera is NOT in PLAY_MODE.  Maybe a new mode is needed: MENU_MODE

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4490
Re: the sx10 porting thread
« Reply #578 on: 26 / October / 2009, 06:17:31 »
One  thing for sure, the camera is NOT in PLAY_MODE.  Maybe a new mode is needed: MENU_MODE
There's probably a different variable that can be used, or perhaps it's a bitmask. Try watching the playrec_mode value with misc debug values. You can use the commented version that draws on top of everything to see it even when the menu is open.
Don't forget what the H stands for.

CHDK Forum

Re: the sx10 porting thread
« Reply #578 on: 26 / October / 2009, 06:17:31 »

Offline hiker_jon

  • Full Member
  • ***
  • Posts: 215
Re: the sx10 porting thread
« Reply #579 on: 26 / October / 2009, 09:52:31 »
One  thing for sure, the camera is NOT in PLAY_MODE.  Maybe a new mode is needed: MENU_MODE
There's probably a different variable that can be used, or perhaps it's a bitmask. Try watching the playrec_mode value with misc debug values. You can use the commented version that draws on top of everything to see it even when the menu is open.
I edited the code in gui_draw_debug_vals_osd() in gui.c to display playrec_mode
Code: [Select]
       
sprintf(osd_buf, "pr:%8x  ", playrec_mode);
draw_txt_string(28, 13, osd_buf, conf.osd_color);
but can't get the misc debug values to show when menu is open or during recreview mode (which I am also interested in).  I guess I don't know how to make the text show no matter what.

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4490
Re: the sx10 porting thread
« Reply #580 on: 26 / October / 2009, 09:59:24 »
In core/gui.c gui_draw_osd, at the very start this is a commented out call to gui_draw_debug_vals_osd

Uncomment that one, comment the other one, and it should draw on top of the menu. Not completely sure about recreview mode.
Don't forget what the H stands for.

Offline hiker_jon

  • Full Member
  • ***
  • Posts: 215
Re: the sx10 porting thread
« Reply #581 on: 26 / October / 2009, 21:21:55 »
In core/gui.c gui_draw_osd, at the very start this is a commented out call to gui_draw_debug_vals_osd

Uncomment that one, comment the other one, and it should draw on top of the menu. Not completely sure about recreview mode.

That worked! (for menu, but it still doesn't show in recreview mode, so in this mode the value of playrec_mode is unknown).

If the camera starts up in play mode then playrec_mode = 0.
In record mode playrec_mode = 2.
If you hit menu in record mode playrec_mode = 4.
If you go back to play mode from record mode playrec_mode = 3.
If the lens retracts while in play mode playrec_mode stays at 3.
If you hit the movie record button in record mode playrec_mode briefly goes to 5 then back to 2.

Whatever playrec_mode is used for, it is more complicated than just a bit field to indicate play/record mode.

I am stuck on how to detect recreview mode.

Offline hiker_jon

  • Full Member
  • ***
  • Posts: 215
Re: the sx10 porting thread
« Reply #582 on: 26 / October / 2009, 22:31:59 »
One more observation on recreview mode.
Not even the <alt> text appears when in this mode, but the camera does go into alt mode (but not reliably) as can be checked by pressing alt then verify that the delete button is not recognized until alt is pressed a second time.

Jon

Offline reyalp

  • Guru Member
  • ******
  • Posts: 4490
Re: the sx10 porting thread
« Reply #583 on: 30 / October / 2009, 08:51:28 »
That worked! (for menu, but it still doesn't show in recreview mode, so in this mode the value of playrec_mode is unknown).

If the camera starts up in play mode then playrec_mode = 0.
In record mode playrec_mode = 2.
If you hit menu in record mode playrec_mode = 4.
If you go back to play mode from record mode playrec_mode = 3.
If the lens retracts while in play mode playrec_mode stays at 3.
If you hit the movie record button in record mode playrec_mode briefly goes to 5 then back to 2.

What happens if you open the menu in play mode ?

Also, by menu you mean the menu button menu, or the func menu ?

edit:
I think I've found the same variable on my camera (a540) and it does not change when you go into the menu in play mode.

It does go to 5 briefly when changing to movie mode with the dial.
« Last Edit: 30 / October / 2009, 09:48:36 by reyalp »
Don't forget what the H stands for.

Offline hiker_jon

  • Full Member
  • ***
  • Posts: 215
Re: the sx10 porting thread
« Reply #584 on: 30 / October / 2009, 13:27:31 »
That worked! (for menu, but it still doesn't show in recreview mode, so in this mode the value of playrec_mode is unknown).

If the camera starts up in play mode then playrec_mode = 0.
In record mode playrec_mode = 2.
If you hit menu in record mode playrec_mode = 4.
If you go back to play mode from record mode playrec_mode = 3.
If the lens retracts while in play mode playrec_mode stays at 3.
If you hit the movie record button in record mode playrec_mode briefly goes to 5 then back to 2.

What happens if you open the menu in play mode ?

Also, by menu you mean the menu button menu, or the func menu ?

edit:
I think I've found the same variable on my camera (a540) and it does not change when you go into the menu in play mode.

It does go to 5 briefly when changing to movie mode with the dial.

I meant press the menu button.  Same as your a540 playrec_mode in my sx10 does not change in play mode when the menu button is pressed.

canon_menu_active detects menu press in play or record mode.

I am stumped by recreview hold.  No chdk graphics appear. This is different than my other cameras (a590,a720).


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal