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 - Alex_Palomo

#1
Okay, thank you a1ex!
#2
Good afternoon, there is menu dependency for the Av mode? (Something like DEP_AV_MODE or similar)

Thank you:)
#3
Yeah!!! It is working now! Many many thanks guys! You have been a great support :)
#4
Wow! Thank you a1ex and mk11174 it's so good to get feedback from you, I'm so greateful.

mk11174 I tried it but there isn't any hidden file starting with ~. It looks good for me.(Maybe I'm wrong)

I thing that the problem comes from the way I create the ML folder to be copied on the card. Here is how I proceed:

1.I write the following lines in the terminal:

cd test/magic-lantern
make -j2
cd platform
cd 600D*
make zip


2.After it ends compiling I copy the ML folder that has been created on the 600D platform, into the card.

3.Then insert de card on the camera and install ML.

4.Then open the MODULES menu and my module is not there. (The only way to get my module on MODULES menu is by modifying the Makefile.modules.default file)

Am I proceeding wrong? Why my module does not load without having to modify the Makefile.modules.default file?

Thanks for your time guys!
#5
Do I have to add my module on Makefile.modules.default or anywhere?
#6
Here is part of the code:


#include <dryos.h>
#include <menu.h>
#include <bmp.h>
#include <lens.h>
#include <config.h>
#include <shoot.h>
#include <math.h>
#include <lvinfo.h>
#include <focus.h>
#include <property.h>
#include <module.h>

static int step_size = 1;
static float apertures_vector[] = {3.5, 4.0, 4.5, 5.0, 5.6, 6.3, 7.1, 8.0, 9.0, 10, 11, 13, 14, 16, 18, 20, 22};

static void dualBracketing()
{
//If lens.focus_distance is not at 250mm (closer focus/init position), then reset focus to init position.
if (lens_info.focus_dist > 25)
{
while (lens_info.focus_dist > 25) lens_focus(1, 3, 1, 1*10);
}
//Dual Bracketing loop
while (lens_info.focus_dist < lens_info.hyperfocal)
    {
for(int i = 0; i < 17; i++)
{
lens_set_rawaperture(apertures_vector[i]); //Set aperture
lens_take_picture(64,false); //Take a picture
/*msleep(100); //sleep for 100ms
if (!lv) force_liveview(); //start LiveViev if turned off*/
}
lens_focus(-1, step_size, 1, 1*10); //Establir quin és el step_size òptim-->Quantes fotos necessitem per calcular depth map?
       //step_size = 1 --> X photos
      //step_size = 2 --> X photos
     //step_size = 3 --> 6 photos
}
}

static int num_proba = 0;
static void proba()
{
lens_set_rawaperture(apertures_vector[num_proba]);
}

static struct menu_entry dualBr_menu[] =
{
    {
        .name = "Dual Bracketing",
.help = "Focus + Aperture Bracketing.",
.help2 = "Press Q to see the options.",
.depends_on = DEP_AUTOFOCUS,
.children =  (struct menu_entry[]) {
            {
                .name = "Start Bracketing",
.priv = dualBracketing,
        .select = run_in_separate_task,
                .help  = "For each step focus, does an aperture bracketing",
.help2 = "Press SET to start taking photos.",
            },
{
                .name = "Step Size",
                .priv = &step_size,
                .min = 1,
                .max = 5,
                .help  = "Size of the focus step",
                .help2 = "The smaller it is, the more pictures it take",
            },
{
                .name = "Proba",
.select = proba,
            },
{
                .name = "num_proba",
                .priv = &num_proba,
                .min = 0,
                .max = 16,
            },
MENU_EOL,
},
    },
};

static unsigned int dualBr_init()
{
menu_add("Shoot", dualBr_menu, COUNT(dualBr_menu));
    return 0;
}

static unsigned int dualBr_deinit()
{
    return 0;
}

MODULE_INFO_START()
    MODULE_INIT(dualBr_init)
    MODULE_DEINIT(dualBr_deinit)
MODULE_INFO_END()


Maybe I'm forgetting to put some code so that to get the module working.
#7
Link on your PM! Thank you Walter :)
#8
Hy guys! I'm trying to load my own module, but every time I try to load it on the camera it fails and the following occurs:



Before loading the module, the README file is correctly read and displayed on the screen.

Hope you can help me! Thank you!
#9
Hy guys!
How can I capture the data on the image buffer? I mean, I need to save the image seen by the sensor on a certain moment. Is that even possible?
Thank you.
#10
I'm actually working on the src file focus.c and I need to use two methods:

1. A method to take a photo
2. A method to move the focus (Do LensFocus or LensFocus2 move the focus?)

Which ones do you know?
Thank you.
#11
Hy garry23, I will work on it!
Again thank you for your time.
#12
Thank you dmilligan!
I just want to (in this order):
1.Take some photos
2.Read them from the SD card and then save them in different variables
3.Once I have the images, then perform some image processing (obviously I need to work with matrices)
4....

#13
Hy guys!
1. Do you know if I can decide wherever a photo is saved when executing camera.shoot() (LUA Scripting)?
2. Can I read from the SD card (or any memory on the camera) with LUA?
Thank you!
#14
Hy guys! I have some problems with the movie.start() LUA function. I just call it when I press "Start Video" on the submenu but it just only goes to LiveView without recording:


I thought that it would be an easy problem to solve, but I don't know why it does not work.
Hope you can help me. Thank you.
#15
Hy! It's me again.
I'm trying to call the focus function from lens library (LUA) and I get syntax error every time. I've searched for it on the LUA API and I've found this:

focus (num_steps[, step_size=2[, wait=true[, extra_delay=0]]])

and this:

lens.focus(steps,[step_size],[wait],[extra_delay]

I don't think it is correct...I've proved and it is not working. How do I have to call the function?
Thank you.
#16
Thank you dfort!!! I'll be updating this post so that to keep you all informed.  :)
#17
Actually, I've format the SD card from the camera (Is that what you mean by saying delete some or all of the built in scripts from the SD card ?). Then, I just install ML and load lua.mo and this error appears.
#18
Such a good new to read your post dmilligan !!!  :) It is amazing to receive such help from experts, you are helping me a lot.
Now I'm working on LUA, trying to understand how to use it. I've loaded the lua.mo module, but when I reboot the camera the following message appears:

QuotePANIC: unprotected error in call to Lua API (not enough memory) abort

Does it mean that the SD card memory is not enough? How can I solve it?

Thank you again guys!

#19
Thanks for your time Licaon_Kter!
What is the advantage of using Lua?
#20
Hy guys, I am starting this new topic in order to solve some specific coding doubts that I have. Maybe this thread does not respect the ML forum rules, or maybe yes, but I think that it could help. I'm currently working on a new feature for ML but I am not an expert on programming it. I am on my last degree on informatic/audiovisual year and I've learned how to code, but ML is huge and I am lost sometimes.

Here are my current doubts:

1. It is possible to access the image buffer of the camera when we are not recording? And when we are recording?

2. It is possible to save a sequence of photos on the memory RAM of the camera or on the SD card and then read it from there? I explain you the problem - My purpose is to take some pictures, save them on the memory, then perform some computations with these images and then use the result (reading it from the memory) to apply a concret method.

Thank you all, and I hope that this could help.
Let's keep ML high.
#21
Thank you guys! You've been such a great help!!! Now that I can compile ML, it's time to dev.
Your video has been very useful to me reddeercity.
Licaon_Kter, my idea is to build something that I've been investigating. Sure that I will let you know!
Have a good day!
#22
Where do you find the virtual machine? I've tried to downlaod the VM of the front page but it is not available anymore.
Thank you!
#23
User Introduction / Hello from Barcelona, Spain!
November 15, 2016, 08:59:01 PM
I'm Alex, and I'm on the final year of Informatic/Audiovisual engineering degree. I'm such a passionate of photography and actually an amateur filmmaker. I want to develop new features for ML applying all the knowledge that I've learn allong the degree. My field is image/video processing as well as computer graphics. Hope to learn a lot from everybody here and keep ML high!

See you! Bests.

Alex