Skip to content

Instantly share code, notes, and snippets.

@digiola
Created October 19, 2016 04:05
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/680fc603b8462544a530c5033746a40e to your computer and use it in GitHub Desktop.
Save digiola/680fc603b8462544a530c5033746a40e to your computer and use it in GitHub Desktop.
700D api_test.lua
===============================================================================
ML/SCRIPTS/api_test.lua - 2016-10-18 20:55:25
===============================================================================
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 = 40
apex = 4
value = 4
min = table:
raw = 32
apex = 3.
value = 2.799999
max = table:
raw = 80
apex = 9
value = 22.6
iso = table:
raw = 72
apex = 5
value = 100
ec = table:
raw = 0
value = 0
flash_ec = table:
raw = 0
value = 0
kelvin = 5000
mode = 3
metering_mode = 3
drive_mode = 0
model = "Canon EOS REBEL T5i"
model_short = "700D"
firmware = "1.1.4"
temperature = 162
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:
write = function: p
show = function: p
clear = function: p
hide = function: p
lv = table:
enabled = false
paused = false
running = false
zoom = 1
resume = function: p
start = function: p
info = function: p
wait = function: p
stop = function: p
pause = function: p
lens = table:
name = "EF-S17-55mm f/2.8 IS USM"
focal_length = 0
focus_distance = 14080
hyperfocal = 0
dof_near = 0
dof_far = 0
af = true
af_mode = 0
focus = function: p
display = table:
idle = true
height = 480
width = 720
rect = function: p
screenshot = function: p
notify_box = function: p
circle = function: p
pixel = function: p
print = function: p
line = function: p
off = function: p
draw = function: p
on = function: p
clear = function: p
load = function: p
key = table:
last = 10
wait = function: p
press = function: p
menu = table:
visible = false
get = function: p
open = function: p
close = function: p
set = function: p
new = function: p
block = function: p
movie = table:
recording = false
stop = function: p
start = function: p
dryos = table:
clock = 48
ms_clock = 48621
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 = 131072
drive_letter = "B"
file_number = 1581
folder_number = 100
free_space = 62748800
type = "SD"
path = "B:/"
_card_ptr = userdata
shooting_card = table:
cluster_size = 131072
drive_letter = "B"
file_number = 1581
folder_number = 100
free_space = 62748800
type = "SD"
path = "B:/"
_card_ptr = userdata
date = table:
sec = 26
wday = 3
month = 10
min = 55
isdst = false
hour = 20
yday = 292
year = 2016
day = 18
rename = function: p
directory = function: p
call = function: p
remove = 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'...
Starting LiveView...
Setting zoom to x1...
Setting zoom to x5...
Setting zoom to x10...
Setting zoom to x5...
Setting zoom to x1...
Setting zoom to x10...
Setting zoom to x1...
Pausing LiveView...
Resuming LiveView...
Stopping LiveView...
LiveView tests completed.
Testing lens focus functionality...
Focus distance: 690
Focusing backward...
Focus distance: 2620
Focusing forward with step size 3, wait=true...
..
Focus distance: 440
Focusing backward with step size 3, wait=true...
...
Focus distance: 2180
Focus range: 2 steps forward, 3 steps backward.
Focusing forward with step size 3, wait=false...
....
Focus distance: 410
Focusing backward with step size 3, wait=false...
...
Focus distance: 4340
Focus range: 4 steps forward, 3 steps backward.
Focusing forward with step size 2, wait=true...
.........................
Focus distance: 410
Focusing backward with step size 2, wait=true...
Focus distance: 655350
Focus range: 25 steps forward, 0 steps backward.
Focusing forward with step size 2, wait=false...
..............
Focus distance: 410
Focusing backward with step size 2, wait=false...
.............
Focus distance: 12330
Focus range: 14 steps forward, 13 steps backward.
Focusing forward with step size 1, wait=true...
................................................................................
Focus distance: 410
Focusing backward with step size 1, wait=true...
....................................................................................................................................................
Focus distance: 655350
Focus range: 80 steps forward, 148 steps backward.
Focusing forward with step size 1, wait=false...
.........
Focus distance: 6430
Focusing backward with step size 1, wait=false...
Focus distance: 655350
Focus range: 9 steps forward, 0 steps backward.
Focus test completed.
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: 11996
Picture taking tests completed.
Testing exposure settings...
Camera : Canon EOS REBEL T5i (700D) 1.1.4
Lens : EF-S17-55mm f/2.8 IS USM
Shoot mode: 3
Shutter : Ç50 (raw 101, 0.020263s, 20ms, apex 5.625)
Aperture : Å4.0 (raw 40, f/4, apex 4)
Av range : Å2.8..Å22 (raw 32..80, f/2.799999..f/22.6, apex 3...9)
ISO : 100 (raw 72, 100, apex 5)
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...
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