Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - wolf

#201
Thanks, I really like the camera motion. I guess it's not only the equipment it depends also on the operator.
#202
General Development / Re: PicoC scripting
January 25, 2013, 03:59:46 PM
This is really great. Thanks a lot.
Now we can calculate for example the sun position and set the values for the images depending on the RTC for timelaps ramping and much more.  :)

#203
General Development / Re: Problem compiling
January 25, 2013, 03:10:04 AM
Step 2b. the pre-built toolchain is working for me...

http://www.magiclantern.fm/forum/index.php?topic=991.0
#204
Nice.
Can you tell what kind of dolly did you use?
#205
Unfortunately I use in my special timelaps-plugin the sprintf command to update the menu which displays the duration of the TL.

With which command is it done today when sprintf is deprecated?
As you see I'm not a very good programmer and thankful for any advice.


UPDATE:
When I use snprintf(time_str,10, "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );
I get depending on the time result something like following displayed in the menu:
e p e p
or  p e p e p e p e

SOLVED:
snprintf(time_str, sizeof(time_str), "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );

outside of ML with gcc it works




...
{
        .name = "Duration",
        .priv = &v,
        .max = 0,
        .choices = (const char *[]) {time_str},
        .help = "",
    },

...

char* sec_to_time(int seconds)
{
    int minutes, hours;
    hours=seconds % 86400 / 3600;
    minutes=seconds % 3600 / 60;
    seconds=seconds % 60;
    const char colon[] = ":";
    sprintf(time_str, "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );
    return time_str;
}
...



with GCC it works for me

#include <stdio.h>

main()
{
    char time_str [ 10 ];
    int minutes, hours, len;
    int seconds =199999000;
    hours=seconds % 86400 / 3600;
    minutes=seconds % 3600 / 60;
    seconds=seconds % 60;
    const char colon[] = ":";
    snprintf(time_str,10, "%02d%s%02d%s%02d",hours,colon,minutes,colon,seconds );
    printf("%s  \n", time_str);
}
#206
General Development / Re: Pymite and picoc
January 13, 2013, 04:36:19 PM
Picoc works now for me on 550D :-)

Now I get this error when I try to compile my old plugins:

...
[ CC       ]   plugin.o
[ CC       ]   console.o
[ AR       ]   lib_a-setjmp.o
[ AR       ]   libstdio.a
[ LD       ]   magiclantern
plugin.o:(.plugin_commands+0x104): undefined reference to `sprintf'
collect2: ld returned 1 exit status
make[1]: *** [magiclantern] Error 1
make[1]: Leaving directory `/home/wolf/magic-lantern/platform/60D.111'
make: *** [60D] Error 2

with this enabled:
CONFIG_PYMITE       = n
CONFIG_RELOC        = n
CONFIG_TIMECODE     = n
CONFIG_PTP          = n
CONFIG_PTP_CHDK     = n
CONFIG_PTP_ML       = n
CONFIG_GDB          = n
CONFIG_GDBSTUB      = n
CONFIG_PLUGINS      = y
CONFIG_CONSOLE      = y
CONFIG_DEBUGMSG     = 0
CONFIG_CCACHE       = n
CONFIG_PICOC        = n

#207
General Development / Re: Pymite and picoc
January 13, 2013, 03:59:30 PM
Hello.c works, but I cant see any printed message on my 550D. (printf("Hello from PicoC!\n");)

and can't compile ML with CONFIG_PLUGINS  = y

...
[ CC       ]   plugin.o
In file included from ../../src/all_headers.h:11:0,
                 from ../../src/plugin.c:4:
../../src/console.h:5:1: error: expected identifier or '(' before '{' token
../../src/console.h:5:31: error: 'console_puts' undeclared here (not in a function)
../../src/console.h:7:1: error: expected identifier or '(' before '{' token
../../src/console.h:7:30: error: 'console_printf' undeclared here (not in a function)
make[1]: *** [plugin.o] Error 1
make[1]: Leaving directory `/home/wolf/magic-lantern/platform/60D.111'
make: *** [60D] Error 2
#208
The 422-jpg.py script is very nice.
You can convert the whole directory containing the 422 images with this script.
Just type (on ArchLinux) "python2 422-jpg.py path_to_dir" and all 422_images in this directory will be converted.
#209
General Development / Re: Pymite and picoc
January 13, 2013, 12:16:54 AM
Suggestions for the scripting API?

Very nice.

I, am a great fan of silent pics, cause the preserve the camera even if I haven't  figured out how to use them with a aperture (sticky button?).
So I suggest half button.
I also suggest  RTC to take a pic or shot a movie at a specific date and or time and setting aperture, time, focus, switch LV which could be interesting for sunset timelaps and the calculation  for example.
And change values inside a script would be awesome. But we can already do this with native(are the so called?) plugins.

I know it's a lot of...
#210
General Chat / Lightworks for Linux alpha
January 09, 2013, 12:39:59 AM
It is possible to download and try out lwks alpha for Linux at the moment. Real commercial (the light version will always be free they say) nle software for Linux  :D 
http://www.lwks.com
#211
General Development / Re: Main menu design proposal
January 05, 2013, 05:34:22 PM
Nice icons.
But why using a different movie icon, the old one is like the Canon icon on the wheel and it is very clear that this means movie mode? Also the the old audio icon seems to me more comprehensible when seeing it the first time.
#212
General Development / Re: Main menu design proposal
December 25, 2012, 05:17:53 PM
Looks better this way - a good improvement in usability and good idea IMHO.
#213
Share Your Photos / Motion detection tap water 550D
December 14, 2012, 02:28:17 AM
I didnt't have enough light so I shot the picture with ISO 6400.


#214
General Development / General architecture of ML
December 12, 2012, 02:13:17 PM
I experimented with plugins and I think this is a great option of ML.
Now I managed it to make a very simple timelaps plugin which adds a menu entry and is configurable. Real developer could do this much better than I did, I guess.
I wonder if seperate ML in a core and plugins would be an improvement.
The core could become smaller in size and the features could become easier to edit and change for lower skilled developers and enlarge in diversity.

Maybe I am overlooking something, but I  would be interested in what other people think about it.   

#215
General Development / Menu for native plugin
December 10, 2012, 06:01:26 PM
Hi there!
Is it possible to create a menu that is displayed within ML with a native plugin, like testplugin.c?
#216
General Development / Re: Pymite and picoc
December 07, 2012, 12:30:34 PM
Thanks for your reply and welcome.  :)
I guess you can upload changes as a patch or you can fork the official source code on
https://bitbucket.org/hudson/magic-lantern/src

#217
General Development / Re: Pymite
December 06, 2012, 06:34:16 PM
Found this patch of yours:
Forum site
http://chdk.setepontos.com/index.php?topic=6161.630
patch
chdk.setepontos.com/index.php?action=dlattach;topic=6161.0;attach=5339

Is this the missing patch?
I just compiled Picoc on my Linux box and it is really awesome. The code runs as a script and it could be compiled too. Amazing - with math lib and "normal" printf!

So now I wonder if it would be possible run a pico compiled code nativley on a EOS camera and would the code run faster?
#218
General Development / Re: Pymite
December 06, 2012, 03:33:43 PM
PicoC sounds good to me. Porting a scripting language to ML is ways beyond my little programming skills. I guess a scripting language for ML is only used by a few people and therefore I like ML the way it is.
I wonder if Pico C would be fast enough to replace the timelapse function or motion detection and could it be able to handle the HDR automatic function?
#219
General Development / PicoC scripting
December 06, 2012, 03:00:10 PM
Hi there,
does anybody know if pymite is still supported. I think, after trying lua, which only operates at the moment with integer numbers, python would be the better scripting language.
When I try to compile ML with pymite=y :
make[1]: *** No rule to make target `script.o', needed by `magiclantern'.  Stop.

Thanks
#220
General Development / Re: LUA plugin question
December 01, 2012, 04:36:06 PM
Thanks for these safety feature, it stopped me bricking my camera eventually. 
#221
General Development / LUA plugin question
December 01, 2012, 01:14:24 PM
I tried to run a script with the newest ML.
The scripts, that came with the source code for example wb_shoot.lua works fine.
But when I try to run a script which worked before:

PROP_REMOTE_SW1 = 0x80020015
msleep(1000)

setbutton = function()
  setprop(PROP_REMOTE_SW1, 1);
  msleep(100)
  setprop(PROP_REMOTE_SW1, 0);
end

msleep(1000)
setbutton()


it should trigger a half button pressed to take a silent pic, but it produces a warning on the screen and a
ASSERT00.LOG file:

ML ASSERT:
PROP_LEN(80020015) correct:2 called:4
at ../../src/property.c:242 (prop_request_change), task TASK
lv:0 mode:3


Magic Lantern version : v2.3.NEXT.2012Dec01.550D109
Mercurial changeset   : a077bad5e286+ (unified) tip
Built on 2012-12-01 00:28:15 by wolf@localhost.
Free Memory  : 305K + 1834K


Does anybody know what this means?
#222
General Development / Re: wifi monitoring via USB
November 29, 2012, 10:23:42 PM
Maybe this Project  helps you. They use libgphoto.
http://entangle-photo.org/
#223
Share Your Photos / Re: Moonlight Gannet Colony
October 30, 2012, 06:22:46 PM
Looks great. The hard work paid off.
#224
I am connected and I can write and read files, but if a file is larger than approximatley 50kb then it fails. For me it is not possible to write the autoexec.bin file but I can read it.

I use Arch Linux and the USB cable is 1m long.

Anybody any clue?
#225
I have a Android tablet which runs ML controller of sztupy. I use it mostly as external monitor.
The App can not trigger the shutter.

But there is a way...

To simulate pressing buttons with the Android application I modified the debug menu. Each item in the new debug menu does nothing but to simulate pressing a button. If you select for example (Left) and press (Set), the ML menu jumps one step to the left. I created all buttons as items needed to control ML, as well as LV, Halfshutter and Fullshutter.
The Android app creates the menu dynamically depending on ML-firmware in the camera, so you can see the modified debug menu.
If you press Left on the Android tablet it is like you press left on you camera.
You can only see the ML menu on your camera screen, but control it with the touchscreen of the tablet.

It works even in LiveView Mode, so it is possible to activate Follow-Focus, change desired step size, switch to LV, start recording and pull the focus with the Android tablet without touching the camera. The Android app monitors always LV.