Wikia

CHDK Wiki

UBASIC/Scripts:Standard/Test/Setmode

Talk0
573pages on
this wiki

< UBASIC

Revision as of 09:00, February 14, 2012 by Fe50 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CHDK/SCRIPTS/TEST/setmode.basEdit

This is a standard test script included in the full CHDK distribution. It is used to verify the correct function of the capture mode control API.

This script attempts to set the specified mode capture mode. Before and after the attempt, the mode status is printed in the format

prop PPP mode NNN rec R

where PPP is the canon shooting mode, NNN is the CHDK mode value, and R is 1 for REC and 0 for PLAY.

If the mode after the set call doesn't match the requested value, an error is reported.

The script waits for a key press after finishing

OptionsEdit

methodEdit

  • 0 canon mode. The value is interpreted as a canon shooting mode value.
  • 1 CHDK mode. The value is interpreted as a CHDK mode value.

valueEdit

PROPCASE_SHOOTING_MODE or CHDK value per above.

DependenciesEdit

  • This script is supported only in CHDK Version 0.9.9 build 847 and later

Camera notesEdit

Verified onEdit

Broken onEdit

Around Wikia's network

Random Wiki