..., except when FW update is used, yes. (My_fw=101c)There´s another jogdial issue: Ix200 & S110 ignore the wheels, S90 & Ix300 the clicks, (Ix870 takes them all.)Code: [Select]--[[@title jogdial test@chdk_version 1.4]] set_console_layout(0,0,25,10)play_sound(4)wheel_right()print("wheel_right()", 1) sleep(2000) play_sound(4)click "right" print("click 'right'", 2) sleep(2000) play_sound(4)wheel_left()print("wheel_left()", 3) sleep(2000) play_sound(4)click "left"print("click 'left'", 4)sleep(2000)play_sound(5)
--[[@title jogdial test@chdk_version 1.4]] set_console_layout(0,0,25,10)play_sound(4)wheel_right()print("wheel_right()", 1) sleep(2000) play_sound(4)click "right" print("click 'right'", 2) sleep(2000) play_sound(4)wheel_left()print("wheel_left()", 3) sleep(2000) play_sound(4)click "left"print("click 'left'", 4)sleep(2000)play_sound(5)
JogDialTest.Lua should perform 4 moves in the wheel-click combo, not 2.Clicks allone work.
/usr/bin/sh: svnversion: command not found.../ubasic/ubasic.c // factors...
@title jogdial.bas@chdk_version 1.4doprint -wheel_left,wheel_rightsleep 111print , wheel_right,-wheel_leftsleep 222until 1>2end
Last line outdated
=wheel_left()
// tokenizer.c#define MAX_NUMLEN 9 // {"get_wheel", TOKENIZER_GET_WHEEL}, // tokenizer.h TOKENIZER_GET_WHEEL, // ubasic.c short jogdial=0;// ubasic.c // factor case TOKENIZER_GET_WHEEL: accept(TOKENIZER_GET_WHEEL); r=get_jogdial_direction(); jogdial=0; if (r==0) break; r=r==JOGDIAL_LEFT ? -1:1; // left=-1 | right=1 flag_yield=1; break; case TOKENIZER_WHEEL_LEFT: accept(TOKENIZER_WHEEL_LEFT); if (jogdial==-1) {jogdial=0; r=1; break;} if (jogdial== 1) {break;} r=get_jogdial_direction(); jogdial=r==JOGDIAL_RIGHT ? 1:0; // if (r==0) break; r=r==JOGDIAL_LEFT ? 1:0; flag_yield=1; break; case TOKENIZER_WHEEL_RIGHT: accept(TOKENIZER_WHEEL_RIGHT); if (jogdial== 1) {jogdial=0; r=1; break;} if (jogdial==-1) {break;} r=get_jogdial_direction(); jogdial=r==JOGDIAL_LEFT ? -1:0; // if (r==0) break; r=r==JOGDIAL_RIGHT ? 1:0; flag_yield=1; break;
@title jogdial.bas@chdk_version 1.4@param J Use Jogdial@default J 1@range J 0 1doif J=1 then j=get_wheelif j=-1 then print j, "wheel_left"if j=1 then print j, "wheel_right"sleep 111until 1>2end
if J then R=get_wheel if R=-1 then click "zoom_out" if R=1 then click "zoom_in" sleep 333 // sleep 222 leads to a AFromlogendif
--[[--@title jogdial.Lua@chdk_version 1.4@param J Use Jogdial@default J 1@range J 0 1--]]--repeatprint(-is_wheel_left(),is_wheel_right())sleep( 111)print("", is_wheel_right(),-is_wheel_left())sleep( 222)until is_key "set"c=0; j=0repeatif J==1 then j=get_wheel(); c=c+j; if j==-1 then print( j, "wheel_left",c) end if j==1 then print( j, "wheel_right",c) end sleep(111) enduntil 1>2--[[-- FUNC(get_wheel) FUNC(is_wheel_left) FUNC(is_wheel_right) FUNC(get_metering_mode) FUNC(set_metering_mode)static int luaCB_get_wheel( lua_State * L ){ short r=get_jogdial_direction(); jogdial=0; if (r==0) { lua_pushnumber( L, 0 ); return 1; } r=r==JOGDIAL_LEFT ? -1:1; // left=-1 | right=1 lua_pushnumber( L, r ); return 1;}static int luaCB_is_wheel_right( lua_State* L ){ if (jogdial==1) {jogdial=0; lua_pushnumber( L, 1 ); return 1;} if (jogdial==-1) { lua_pushnumber( L, 0 ); return 1;} short r=get_jogdial_direction(); jogdial=r==JOGDIAL_LEFT ? -1:0; // if (r==0) { lua_pushnumber( L, 0 ); return 1;} r=r==JOGDIAL_RIGHT ? 1:0; lua_pushnumber( L, r ); return 1;}static int luaCB_is_wheel_left( lua_State* L ){ if (jogdial==-1) {jogdial=0; lua_pushnumber( L, 1 ); return 1;} if (jogdial== 1) { lua_pushnumber( L, 0 ); return 1;} short r=get_jogdial_direction(); jogdial=r==JOGDIAL_RIGHT ? 1:0; // if (r==0) { lua_pushnumber( L, 0 ); return 1;} r=r==JOGDIAL_LEFT ? 1:0; lua_pushnumber( L, r ); return 1;}static int luaCB_get_metering_mode( lua_State* L ){ lua_pushnumber( L, camera_info.props.metering_mode ); return 1;}static int luaCB_set_metering_mode( lua_State* L ){ shooting_set_prop(camera_info.props.metering_mode, luaL_checknumber( L, 1 )); return 0;}--]]--
/usr/bin/sh: svnversion: command not foundgmake[1]: *** No rule to make target '.o/luascript.o', needed by '.o/lua.flt'. Stop.gmake: *** [all-recursive] Error 1
Sx210 wheel_left() good else fails.
=return ('CW:0x%x CCW:0x%x'):format(({get_levent_def('RotateJogDialRight')})[2],({get_levent_def('RotateJogDialLeft')})[2])
Started by dimitrios General Discussion and Assistance
Started by toinech Feature Requests
Started by andrew.stephens.754365 Hotwire! Hardware Mods, Accessories and Insights
Started by koshy « 1 2 ... 12 13 » General Discussion and Assistance
Started by C0NFUS4TR0N General Help and Assistance on using CHDK stable releases