Wikia

CHDK Wiki

Changes: User:Srsa 4c/CHDK porting pitfalls

Edit

Back to page

(started documenting some undocumented parts of the code)
 
m (canon_shoot_menu_active)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
__TOC__
 
__TOC__
  +
==Non-backwards compatible changes in camera specific code==
  +
===CHDK 1.2===
  +
====https://trac.assembla.com/chdk/changeset/2483====
  +
*''state_kbd_script_run'' is now part of a structure
 
==Firmware variables==
 
==Firmware variables==
 
===canon_shoot_menu_active===
 
===canon_shoot_menu_active===
Line 7: Line 11:
 
*maybe when other similar Canon function is active (for example FE lock)
 
*maybe when other similar Canon function is active (for example FE lock)
 
Default CHDK action (as of r1997): OSD will vanish when this becomes nonzero. If this is undesired, CAM_SHOW_OSD_IN_SHOOT_MENU needs to be defined in the camera's platform_camera.h.
 
Default CHDK action (as of r1997): OSD will vanish when this becomes nonzero. If this is undesired, CAM_SHOW_OSD_IN_SHOOT_MENU needs to be defined in the camera's platform_camera.h.
  +
  +
This address of this variable is found indirectly for many ports, and the comment about taskcreate_DSITask only helps to find the address ''next'' to the one that holds canon_shoot_menu_active...
  +
  +
===parameter_for_af_scan===
  +
Needed for cameras where MakeAFScan() has only one argument (earlier VxWorks models?).<br />Details: http://chdk.setepontos.com/index.php?topic=1801.0

Latest revision as of 14:00, February 2, 2013

Non-backwards compatible changes in camera specific codeEdit

CHDK 1.2Edit

https://trac.assembla.com/chdk/changeset/2483Edit

  • state_kbd_script_run is now part of a structure

Firmware variablesEdit

canon_shoot_menu_activeEdit

becomes nonzero (observed value: 1) when the camera is in record mode and either of the following conditions is true

  • shooting menu is shown (the one you activate with the func/set button)
  • AEL (exposure lock) or AFL (AF lock) is active
  • maybe when other similar Canon function is active (for example FE lock)

Default CHDK action (as of r1997): OSD will vanish when this becomes nonzero. If this is undesired, CAM_SHOW_OSD_IN_SHOOT_MENU needs to be defined in the camera's platform_camera.h.

This address of this variable is found indirectly for many ports, and the comment about taskcreate_DSITask only helps to find the address next to the one that holds canon_shoot_menu_active...

parameter_for_af_scanEdit

Needed for cameras where MakeAFScan() has only one argument (earlier VxWorks models?).
Details: http://chdk.setepontos.com/index.php?topic=1801.0

Around Wikia's network

Random Wiki