Created
October 19, 2016 03:37
-
-
Save digiola/3688ab40e534aa7ac52a65f6db5ac9f7 to your computer and use it in GitHub Desktop.
EOSM api_test.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=============================================================================== | |
ML/SCRIPTS/API_TEST.LUA - 2016-10-18 20:28:21 | |
=============================================================================== | |
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 = 24 | |
apex = 2 | |
value = 2 | |
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 = 0 | |
model = "Canon EOS M" | |
model_short = "EOSM" | |
firmware = "2.0.2" | |
temperature = 208 | |
state = 0 | |
bulb = function: p | |
burst = function: p | |
reboot = function: p | |
shoot = 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: | |
show = function: p | |
hide = function: p | |
write = function: p | |
clear = function: p | |
lv = table: | |
enabled = true | |
paused = false | |
running = true | |
zoom = 1 | |
resume = function: p | |
start = function: p | |
pause = function: p | |
wait = function: p | |
stop = function: p | |
info = function: p | |
lens = table: | |
name = "EF-M22mm f/2 STM" | |
focal_length = 22 | |
focus_distance = 210 | |
hyperfocal = 3206 | |
dof_near = 199 | |
dof_far = 222 | |
af = true | |
af_mode = 0 | |
focus = function: p | |
display = table: | |
idle = true | |
height = 480 | |
width = 720 | |
off = function: p | |
rect = function: p | |
line = function: p | |
clear = function: p | |
circle = function: p | |
screenshot = function: p | |
load = function: p | |
print = function: p | |
notify_box = function: p | |
draw = function: p | |
pixel = function: p | |
on = function: p | |
key = table: | |
last = 10 | |
wait = function: p | |
press = function: p | |
menu = table: | |
visible = false | |
new = function: p | |
open = function: p | |
get = function: p | |
block = function: p | |
set = function: p | |
close = function: p | |
movie = table: | |
recording = false | |
stop = function: p | |
start = function: p | |
dryos = table: | |
clock = 20 | |
ms_clock = 20397 | |
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 = 5672 | |
folder_number = 100 | |
free_space = 31117504 | |
type = "SD" | |
path = "B:/" | |
_card_ptr = userdata | |
shooting_card = table: | |
cluster_size = 32768 | |
drive_letter = "B" | |
file_number = 5672 | |
folder_number = 100 | |
free_space = 31117504 | |
type = "SD" | |
path = "B:/" | |
_card_ptr = userdata | |
date = table: | |
hour = 20 | |
min = 28 | |
month = 10 | |
wday = 3 | |
yday = 292 | |
isdst = false | |
day = 18 | |
sec = 23 | |
year = 2016 | |
rename = function: p | |
remove = function: p | |
directory = function: p | |
call = 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 'globals.xpcall' | |
ML/SCRIPTS/API_TEST.LUA:31: in function 'globals.print_table' | |
ML/SCRIPTS/API_TEST.LUA:76: in function 'globals.generic_tests' | |
ML/SCRIPTS/API_TEST.LUA:749: in function 'globals.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 module 'lv'... | |
LiveView is running; stopping... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test hangs trying to stop lv on EOSM because that camera is always in live view mode.