Wrong values for AF_MODE_AI_FOCUS & AF_MODE_AI_SERVO

Started by Marsu42, April 10, 2013, 03:47:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Marsu42

After much frustration, I realized the values in property.h for AF_MODE_AI_FOCUS & AF_MODE_AI_SERVO are wrong for my 60D ... imho something is completely wrong with short props like PROP_AF or it has model-specific values in platform/xyz - below are the values that are saved from the camera and work when setting it.

Doh, now I need some time off, I like taking pictures but this is frustrating - and I again realize your stellar work that has made the current framework possible.

diff -r db64fd3c5bdc -r 4e501b44d217 platform/60D.111/gui.h
--- a/platform/60D.111/gui.h Wed Apr 10 14:54:10 2013 +0200
+++ b/platform/60D.111/gui.h Wed Apr 10 15:38:04 2013 +0200
@@ -70,4 +70,7 @@

#define BTN_ZEBRAS_FOR_PLAYBACK BGMT_UNLOCK // what button to use for zebras in Play mode

+#define AF_MODE_AI_FOCUS 514
+#define AF_MODE_AI_SERVO 257
+
#endif
diff -r db64fd3c5bdc -r 4e501b44d217 src/property.h
--- a/src/property.h Wed Apr 10 14:54:10 2013 +0200
+++ b/src/property.h Wed Apr 10 15:38:04 2013 +0200
@@ -64,11 +64,9 @@
#define PROP_USBDEVICE_CONNECT  0x8004000a
#define PROP_MVR_MOVW_START0    0x80000020 // not sure?
#define PROP_MVR_MOVW_START1    0x80000021
-#define PROP_AF_MODE            0x80000004 // 0 = one shot, 3 == manual focus, 202 = ai (dumb) focus, 101 = ai servo (slightly better)
+#define PROP_AF_MODE            0x80000004 // 0 = one shot, 3 == manual focus, ai focus & ai servo are model-specific
#define AF_MODE_ONE_SHOT   0
#define AF_MODE_MAN_FOCUS  3
-#define AF_MODE_AI_FOCUS 202
-#define AF_MODE_AI_SERVO 101
#define PROP_MVR_REC            0x80030002
#define PROP_LV_LENS            0x80050000
#define PROP_LV_0004            0x80050004