Skip to content

Instantly share code, notes, and snippets.

@digiola
Created October 19, 2016 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digiola/cb32adc08bacc2e13e606886f1ea2b51 to your computer and use it in GitHub Desktop.
Save digiola/cb32adc08bacc2e13e606886f1ea2b51 to your computer and use it in GitHub Desktop.
EOSM api_test.lua w/o test_lv lens set to manual - remove lens to skip test_lens_focus
===============================================================================
ML/SCRIPTS/API_TEST.LUA - 2016-10-19 04:36:41
===============================================================================
Strict mode tests...
Strict mode tests passed.
Generic tests...
camera = table:
shutter = table:
raw = 101
apex = 5.625
ms = 20
value = 0.020263
aperture = table:
raw = 56
apex = 6.
value = 8
min = table:
raw = 40
apex = 4
value = 4
max = table:
raw = 80
apex = 9
value = 22.6
iso = table:
raw = 96
apex = 8
value = 800
ec = table:
raw = 0
value = 0
flash_ec = table:
raw = 0
value = 0
kelvin = 6500
mode = 3
metering_mode = 1
drive_mode = 1
model = "Canon EOS M"
model_short = "EOSM"
firmware = "2.0.2"
temperature = 201
state = 0
reboot = function: p
burst = function: p
shoot = function: p
bulb = function: p
event = table:
pre_shoot = nil
post_shoot = nil
shoot_task = nil
seconds_clock = nil
keypress = nil
custom_picture_taking = nil
intervalometer = nil
config_save = nil
console = table:
write = function: p
show = function: p
hide = function: p
clear = function: p
lv = table:
enabled = true
paused = false
running = true
zoom = 1
info = function: p
stop = function: p
wait = function: p
resume = function: p
pause = function: p
start = function: p
lens = table:
name = "EF-M11-22mm f/4-5.6 IS STM"
focal_length = 11
focus_distance = 360
hyperfocal = 807
dof_near = 252
dof_far = 629
af = false
af_mode = 3
focus = function: p
display = table:
idle = true
height = 480
width = 720
circle = function: p
pixel = function: p
line = function: p
off = function: p
print = function: p
rect = function: p
on = function: p
screenshot = function: p
notify_box = function: p
clear = function: p
load = function: p
draw = function: p
key = table:
last = 10
press = function: p
wait = function: p
menu = table:
visible = false
set = function: p
block = function: p
get = function: p
close = function: p
new = function: p
open = function: p
movie = table:
recording = false
stop = function: p
start = function: p
dryos = table:
clock = 12
ms_clock = 12808
prefix = "IMG_"
dcim_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "B:/"
path = "B:/DCIM/"
path = "B:/DCIM/100CANON/"
config_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "B:/"
path = "ML/"
path = "ML/SETTINGS/"
ml_card = table:
cluster_size = 32768
drive_letter = "B"
file_number = 5681
folder_number = 100
free_space = 31117376
type = "SD"
path = "B:/"
_card_ptr = userdata
shooting_card = table:
cluster_size = 32768
drive_letter = "B"
file_number = 5681
folder_number = 100
free_space = 31117376
type = "SD"
path = "B:/"
_card_ptr = userdata
date = table:
yday = 293
hour = 4
day = 19
month = 10
year = 2016
isdst = false
wday = 4
sec = 42
min = 36
directory = function: p
remove = function: p
call = function: p
rename = function: p
interval = table:
time = 10
count = 0
running = false
stop = function: p
battery = table:
function not available on this camera
stack traceback:
[C]: in ?
[C]: in for iterator 'for iterator'
ML/SCRIPTS/LIB/logger.lua:125: in function 'logger.serialize'
ML/SCRIPTS/API_TEST.LUA:32: in function <ML/SCRIPTS/API_TEST.LUA:31>
[C]: in function 'xpcall'
ML/SCRIPTS/API_TEST.LUA:31: in function 'print_table'
ML/SCRIPTS/API_TEST.LUA:76: in function 'generic_tests'
ML/SCRIPTS/API_TEST.LUA:749: in function 'api_tests'
ML/SCRIPTS/API_TEST.LUA:766: in main chunktask = table:
yield = function: p
create = function: p
property = table:
Generic tests completed.
Module tests...
Testing file I/O...
Copy test: autoexec.bin -> tmp.bin
Copy test OK
Append test: tmp.txt
Append test OK
Rename test: apple.txt -> banana.txt
Rename test OK
Rename test: apple.txt -> ML/banana.txt
Rename test OK
File I/O tests completed.
Testing half-shutter...
Half-shutter test OK.
Testing lens focus functionality...
Please enable autofocus.
(or, remove the lens from the camera to skip this test)
Focus test skipped.
Testing picture taking functions...
Snap simulation test...
Single picture...
Two burst pictures...
Ideally, the camera should be in some continuous shooting mode (not checked).
Bulb picture...
Elapsed time: 12105
Picture taking tests completed.
Testing exposure settings...
Camera : Canon EOS M (EOSM) 2.0.2
Lens : EF-M11-22mm f/4-5.6 IS STM
Shoot mode: 3
Shutter : BULB (raw 12, 45.254833s, 45255ms, apex -5.5)
Aperture : Å8.0 (raw 56, f/8, apex 6.)
Av range : Å4.5..Å25 (raw 43..83, f/4.5..f/25.7, apex 4.374999..9.374999)
ISO : 800 (raw 96, 800, apex 8)
EC : 0.0 (raw 0, 0 EV)
Flash EC : 0.0 (raw 0, 0 EV)
Setting shutter to random values...
Setting ISO to random values...
Setting aperture to random values...
Error: aperture delta 0.25 EV (expected < 0.1875, f/Å8.0, method=3)
Please switch to Av mode.
Setting EC to random values...
Setting Flash EC to random values...
Exposure tests completed.
Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment