Mode dials and Playback pushbuttons - page 10 - General Discussion and Assistance - CHDK Forum

Mode dials and Playback pushbuttons

  • 201 Replies
  • 90747 Views
*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Mode dials and Playback pushbuttons
« Reply #90 on: 15 / November / 2009, 10:49:57 »
Advertisements
You've done some great work here reyalp, thank you!

I think I'd like 2+4 the most i.e. using CHDK mode values for ubasic and lua, and optionally an external (to save RAM) lua library that provides names for those values. Going through the modemap should be enough for sanity check for "hidden" modes (hidden modes that are found to be useful using lower level functions could then be added to the modemap).

Propcase->mode translation function doesn't probably need to be available to script writers (get_shooting_mode will just need to go through the modemap and return the CHDK mode number usable for set_shooting_mode), as long as it doesn't crash when modemap is buggy or incomplete?

Buggy modemaps don't really worry me that much, fixing those has been on the todo list for ages and this thing ought to make that finally more or less happen. Or do you think there's physical danger in switching to incorrect modes on some cameras?

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Mode dials and Playback pushbuttons
« Reply #91 on: 15 / November / 2009, 15:32:09 »
@reyalP  playrec_mode works fine on the SD400 (#1 aka MODE_P is the Manual mode, as usual on the Ixus cameras)

Small test script:
Code: (lua) [Select]
sleep(2000)

for i=0,11 do
  print("Switch to: "..i)
  set_capture_mode(i)
  print("done.")
  sleep(3000)
end 

--[[
MODE_DIGITAL_MACRO,       0 },
MODE_P,                   1 },
MODE_AUTO,                3 },
MODE_MY_COLORS,           4 },
MODE_PORTRAIT,            5 },
MODE_SCN_WATER,           6 },
MODE_SCN_PARTY,           7 },
MODE_SCN_CHILD,           8 },
MODE_SCN_NIGHT,           9 },
MODE_STITCH,             10 },
MODE_VIDEO_STD,          11 }
--]]

*Edit:
I personally prefer No. 1, easy to handle.
Maybe a lookup table / "translation table" for the different cameras could be helpful to write camera independent scripts - not for me, but for others ;)
« Last Edit: 15 / November / 2009, 15:39:01 by fe50 »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Mode dials and Playback pushbuttons
« Reply #92 on: 15 / November / 2009, 15:39:14 »
playrec_mode works fine on the SD400 (#1 aka MODE_P is the Manual mode, as usual on the Ixus cameras)

And what is mode #2? "M" mode with custom exposure (1..15 s)?

*

Offline reyalp

  • ******
  • 14126
Re: Mode dials and Playback pushbuttons
« Reply #93 on: 16 / November / 2009, 02:13:32 »
Propcase->mode translation function doesn't probably need to be available to script writers (get_shooting_mode will just need to go through the modemap and return the CHDK mode number usable for set_shooting_mode), as long as it doesn't crash when modemap is buggy or incomplete?
No, it wouldn't crash. There are some quirks though:
For example, I noted on SD990 that:
Quote
Setting the DP button as a shortcut to movie in canon menu gives a value of (current mode)+1024 while movie is recording, unless already in movie mode
I assume other cameras with a movie button do something similar.

In sx10 and sx1 we also have
Code: [Select]
{ MODE_VIDEO_STD,          2597   }, // video standby
{ MODE_VIDEO_STD,          3622   }, // video in progress
If set_capture_mode and get_capture_mode work in CHDK values, they have to deal with these somehow. Currently mod_get will just return 0 for the mode portion if the mode isn't in the map.

Quote
Buggy modemaps don't really worry me that much, fixing those has been on the todo list for ages and this thing ought to make that finally more or less happen. Or do you think there's physical danger in switching to incorrect modes on some cameras?
Only a crash at worst, I assume. In any case, I think most are fixed now. Some of the ones I thought were broken were the old cameras (like ixus40) that actually do use 1-n as mode values.
Don't forget what the H stands for.

Re: Mode dials and Playback pushbuttons
« Reply #94 on: 28 / November / 2009, 23:53:51 »
I've added a650 info to the dial propcase values page. it seems that page needs to be reorganized if there is going to be so much variation between modes and values. i was thinking of putting everything into one table.

i can confirm that set_record and set_capture_mode work on the a650.

thanks!

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Mode dials and Playback pushbuttons
« Reply #95 on: 29 / November / 2009, 05:48:22 »
And what is mode #2? "M" mode with custom exposure (1..15 s)?

Sorry ewavr, missed your post  :(

Yes, mode #2 seem to be M mode with "Long shutter" (not available from the Canon menu on the SD400);
the exposure in this mode #2 is 1", also shown on the Canon OSD.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Mode dials and Playback pushbuttons
« Reply #96 on: 29 / November / 2009, 07:01:56 »
Yes, mode #2 seem to be M mode with "Long shutter" (not available from the Canon menu on the SD400);
the exposure in this mode #2 is 1", also shown on the Canon OSD.
According to ixus50 (russian) manual, this mode must be actviated from camera main menu (in 'M' mode). Exposure can be set from exposure compensation submenu by pressing 'menu' button. This is true for ixus700, but I don't have access to ixus50...

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Mode dials and Playback pushbuttons
« Reply #97 on: 29 / November / 2009, 07:29:17 »
According to ixus50 (russian) manual, this mode must be actviated from camera main menu (in 'M' mode). Exposure can be set from exposure compensation submenu by pressing 'menu' button. This is true for ixus700, but I don't have access to ixus50...

Yes, correct, it must be enabled first with "Long Shutter" from the Canon menu.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Mode dials and Playback pushbuttons
« Reply #98 on: 29 / November / 2009, 17:45:47 »
Is there a way to mask(disable/enable) some logical events (especially playback<->record switching)?
p.s. Built-in forum search cannot find "post_levent_to_ui". Very strange.
« Last Edit: 29 / November / 2009, 17:47:37 by ewavr »

*

Offline reyalp

  • ******
  • 14126
Re: Mode dials and Playback pushbuttons
« Reply #99 on: 29 / November / 2009, 18:06:02 »
Is there a way to mask(disable/enable) some logical events (especially playback<->record switching)?
p.s. Built-in forum search cannot find "post_levent_to_ui". Very strange.
You might experiment with set_levent_active. It seems to stop mode dial change events generated by the physical dial from being posted.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal