KAP & UAV Exposure Control Intervalometer Script - page 89 - Completed and Working Scripts - CHDK Forum

KAP & UAV Exposure Control Intervalometer Script

  • 1068 Replies
  • 411289 Views
Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #880 on: 30 / July / 2016, 13:29:50 »
Advertisements
Hi

I posted earlier about getting the script to work and I managed to get it to work with the SimpleShutter cable from http://www.mobilexcopter.com. I managed to trigger the camera using my pc version of mission planner and my RC (chan7).

I tried to use 3DR Tower software to use the structure scanner to fly over an area and automatically take pictures. As S90 is not available in the Tower software I chose S100 but it does not seem to take any pictures. CHDK is running and the KAP_UAV Script is running as well.

Does anybody have experience with 3DR Tower software on android , CHDK , and the KAP_UAV scripts ?
Do I need the script ?

 :'(



Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #881 on: 30 / July / 2016, 14:30:30 »
I posted earlier about getting the script to work and I managed to get it to work with the SimpleShutter cable from http://www.mobilexcopter.com. I managed to trigger the camera using my pc version of mission planner and my RC (chan7).

I tried to use 3DR Tower software to use the structure scanner to fly over an area and automatically take pictures. As S90 is not available in the Tower software I chose S100 but it does not seem to take any pictures. CHDK is running and the KAP_UAV Script is running as well.
Please copy the KAP.LOG file from the root folder of your SD card and attach it to a post here.

Quote
Do I need the script ?
It's possible to trigger shots with just the CHDK USB Remote settings.  But it all depends on how you have your flight controller software configured.
« Last Edit: 30 / July / 2016, 14:33:25 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #882 on: 30 / July / 2016, 15:31:43 »
Hi

I actually wanna trigger the camera via the 3DR Tower Software on my android tablet but as there is no S90 to choose, I chose S100 in there. I am not even 100% sure this is the right place but I am a bit unsure how to debug that.

Here is my KAP.log for today:

2016Jul30 15:13:59    KAP 3.8 started - press MENU to exit
2016Jul30 15:13:59    CHDK 1.4.1-4599 s90 100c Apr 18 2016
2016Jul30 15:13:59    Mode:PLAY,Continuous_AF:1,Servo_AF:2 Drive:0
2016Jul30 15:13:59     Tv:1/1000 max:1/2000 min:10 ecomp:0.0
2016Jul30 15:13:59     Av:5.0 minAv:2.8 maxAv:8.0
2016Jul30 15:13:59     ISOmin:100 ISO1:400 ISO2:800 M:0
2016Jul30 15:13:59     Focus:AFL  Video:0 USB:2:1 Tmo:0
2016Jul30 15:13:59     AvM:1 int:3 Shts:0 Dly:5 B/L:0
2016Jul30 15:14:00    entering start delay of 5 seconds
2016Jul30 15:14:08    waiting on USB signal
2016Jul30 16:04:39    Menu key exit request
2016Jul30 16:04:39    Logger : log file updated.

Br and thanks :)

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #883 on: 30 / July / 2016, 17:11:06 »
I actually wanna trigger the camera via the 3DR Tower Software on my android tablet but as there is no S90 to choose, I chose S100 in there.
I took a very quick look at the 3DR Tower git repository but it was not clear what the camera setting is supposed to do.  Certainly the code has no way to know if you have an S90 or S100 attached.
Quote
Here is my KAP.log for today:
From your log file, it does not look like your system is toggling the USB line to the camera at all.   So this does not appear to have anything to do with CHDK or the kap_uav.lua script.
Quote
I am not even 100% sure this is the right place but I am a bit unsure how to debug that.
I notice you've posted this issue over on the ardupilot forum (and possibly elsewhere?). That's probably a better place to get an answer.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #884 on: 20 / August / 2016, 14:48:25 »
Hi

I am still debugging my S90 / Tower app issue. According to the maker of my shutter cable, the pulse sent to the chdk script is hat the pixhawk outputs (like it mirrors it).
How long should a pulse be at least for the OneShot Mode ?

What does this log tell me ? (It shot 1 picture at the beginning but that's all)

2016Aug20 20:32:55    KAP 3.8 started - press MENU to exit
2016Aug20 20:32:55    CHDK 1.4.1-4672 s90 100c Aug 11 2016
2016Aug20 20:32:55    Mode:PLAY,Continuous_AF:1,Servo_AF:2 Drive:0
2016Aug20 20:32:55     Tv:1/1000 max:1/2000 min:10 ecomp:0.0
2016Aug20 20:32:55     Av:4.5 minAv:3.2 maxAv:8.0
2016Aug20 20:32:55     ISOmin:100 ISO1:400 ISO2:800 M:0
2016Aug20 20:32:55     Focus:AFL  Video:0 USB:2:1 Tmo:0
2016Aug20 20:32:55     AvM:1 int:2 Shts:0 Dly:5 B/L:0
2016Aug20 20:32:56    entering start delay of 5 seconds
2016Aug20 20:33:04    waiting on USB signal
2016Aug20 20:37:04    USB start signal received
2016Aug20 20:37:08    Mode switched to P
2016Aug20 20:37:11    Logger : log file updated.
2016Aug20 20:37:19    timeout after shoot full
2016Aug20 20:37:13.150 1) IMG_1714.JPG
2016Aug20 20:37:19     meter : Tv:1.0 Av:2.0 Sv:1600 -741:-741
2016Aug20 20:37:19     actual: Tv:10 Av:3.2 Sv:800 Temp:26
2016Aug20 20:37:19             AvMin:3.2 NDF:NDout foc:infinity
2016Aug20 20:38:11    Logger : log file updated.
2016Aug20 20:39:11    Logger : log file updated.
2016Aug20 20:40:11    Logger : log file updated.
2016Aug20 20:41:11    Logger : log file updated.
2016Aug20 20:42:11    Logger : log file updated.
2016Aug20 20:43:11    Logger : log file updated.
2016Aug20 20:43:20    MENU key pressed.
2016Aug20 20:43:20    script halt requested
2016Aug20 20:43:20    Logger : log file updated.

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #885 on: 20 / August / 2016, 15:24:34 »
Acording to the maker of my shutter cable, the pulse sent to the chdk script is hat the pixhawk outputs (like it mirrors it).
This one ?  Simple Canon shutter - Pixhawk version

Quote
How long should a pulse be at least for the OneShot Mode ?
It should catch anything longer that a couple of milliseconds.

Quote
What does this log tell me ? (It shot 1 picture at the beginning but that's all)
Basically,  it tells you what you just said - i.e. it shot 1 picture at the beginning but that's all.

However, the "shoot full" timeout message is interesting.  It looks like there was almost no light - where you shooting in a dark room?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #886 on: 20 / August / 2016, 15:41:04 »
Hi

Yeah I am using the cable you mentioned.
Right now the pulse is around 1/10 sec long and the cam should shoot as fast as possible. You are indeed correct, the light was not the best here, yet it was not dark but now I know what this error message means.

I am still wondering if it's some issue of the Tower App or the pulse sent or the App doesn't correctly send the commands to trigger but the people there are a bit unresponsive so maybe I need to dive into the app code ...

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #887 on: 20 / August / 2016, 17:01:19 »
I am still wondering if it's some issue of the Tower App or the pulse sent or the App doesn't correctly send the commands to trigger but the people there are a bit unresponsive so maybe I need to dive into the app code ...
At this point,  I don't think it the kap_uav.lua script, or how you have set it up,  that is causing the problem.  So I've attached a simple script that measure the width of each USB pulse and prints the result to the camera LCD.  It also reports the time between pulses. You might want to use it to test if pulses are being generated (and how long they are) while you work on your flight controller setup.  Should be accurate down to about 1 mSec resolution.


Ported :   A1200    SD940   G10    Powershot N    G16


Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #888 on: 20 / August / 2016, 17:16:06 »
Thanks :)

Going to do some tests :)

Re: KAP & UAV Exposure Control Intervalometer Script
« Reply #889 on: 20 / August / 2016, 17:28:58 »
Going to do some tests :)
You can ensure the USB test script is working by using a standard USB cable between your camera & PC.  Just plug & unplug the cable a few times while the script is running and your should see timing values scroll up the screen.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics