dowallin
RE my "problem" camera: Yes, ground-based photos on Auto (with AF settings on) produce sharp photos at infinity and close up as well. So maybe this is consistent with your theory?
Thanks for that update. I continue to think my theory about CHDK being able to focus a camera at infinity is pretty much determined by whether the built-in Canon focus distance information is correct. And that Canon AF does not use those values to pick the best focus.
But not sure that I'll be able to use this camera in my UAV.
Well, you do have four more .....
As I said, in my last flight with this camera and using the older "interval.lua" script and with the camera on Auto (with all AF settings on) I got lousy photos. Do you have any ideas to "fix" the problem?
Simply answer? Don't use interval.lua. That script was purposely included in the default CHDK build several years ago as the simplest example of an intervalometer script. And so that's what it does - shoots in AUTO mode at a defined interval.
OTOH, kap_uav.lua works very hard to shoot at the highest possible shutter speed for the range of ISO values you are comfortable with. Over the last couple of years, a few more features have been added. Okay, more than a few - it's probably one of the top 20 CHDK scripts in terms of sophistication. But fundamentally all that is extra and it's about getting the best exposure / focus possible on a moving platform.
RE attempting to use KAP_UAV linked to my APM2.6 for Distance-based triggering: I can't get it to work.
Sorry .. not sure I can help here in a CHDK forum. The script works AFAIK - how your flight controller works is virgin territory for me. Still, I'm willing to try and help.
I have my camera running KAP_UAV with:
Shot Interval: Fast
USB Shot Control: One Shot
USB Timeout: (I've tried both 0 and 1)
Sound okay. You might set USB timeout to something like 10 seconds during testing but 0 (or none) should work too.
On the CHDK, Main menu->CHDK Settings->Remote Parameters -> Enable Remote setting is checked.â€
The script does not care what you set in the CHDK Menus. It will configure things as needed for it to run and then reset things when done to match your CHDK menu settings.
I start KAP_UAV and get a "Waiting on USB" message. But the lens remains closed and no pictures are taken.
Given your settings, that says that the script is pretty much waiting for any 0V to 5v to 0V transistion on the USB +5V pin bfore it will start. If it's stuck there ... it's not seeing the signal.
Do you have a volt meter (or other testing device like an oscilloscope) that can confirm that the flight controller is actually sending signals to the cameras?
Servo plug connected to A9 on my APM2.6. I've also referred to these two pages for additional set up info:
2.
http://planner.ardupilot.com/wiki/common-apm-to-chdk-camera-link-tutorial/
3.
http://planner.ardupilot.com/wiki/common-camera-shutter-with-servo/#shutter_configuration_with_apm_2x
I'm stumped. One thing that was a bit confusing from these 3 pages. Page #1 talks about going into the Full Parameters List in the Config/Tuning tab and entering several parameters, which I've done. And, as suggested for testing purposes, I've set the Cam_Trigg_Dist to 1. Zooming in on the Flight Data page in Mission Planner, I can see my plane "wandering" by several meters every few seconds due to GPS error. So this should be enough to trigger the camera.
Webpages #2 and #3 also mention going to the Camera Gimbal Configuration Screen and selecting RELAY in the Shutter dropdown list. I've done this, HOWEVER, I note that if I go to any other page in Mission Planner and then come back to the Camera Gimbal Configuration Screen, my selection of RELAY on the Shutter dropdown list seems to be lost. Maybe this is my problem? Is there something that I need to do to lock or save my selection of RELAY?
Sorry .. I have no knowledge about APM setup so I can't help more at this point.