SD980 port - page 17 - DryOS Development - CHDK Forum supplierdeeply

SD980 port

  • 169 Replies
  • 58410 Views
*

Offline RaduP

  • *****
  • 926
Re: SD980 port
« Reply #160 on: 26 / October / 2009, 20:14:08 »
Advertisements
New release, with many bug fixes: http://chdk.setepontos.com/index.php/topic,4335.0.html

Re: SD980 port
« Reply #161 on: 06 / January / 2010, 05:59:58 »
DELETED  wrong thread.


Re: SD980 port
« Reply #162 on: 08 / March / 2010, 14:20:10 »
I'm a little confused. I'm new here, so bear with me. I see the compiled binaries in the beta release thread, and I see a lot of platform code referenced in this thread, but it doesn't look like the 1.00C code is in SVN yet. Is there somewhere I could get the current 1.00C platform code snapshot?

EDIT: RaduP posted a link in the release thread. Thanks RaduP!
« Last Edit: 16 / March / 2010, 22:11:39 by bejean »

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: SD980 port
« Reply #163 on: 16 / May / 2020, 13:58:54 »
 ??? Playing with Ixus 200 I found similar startup issue as:
https://chdk.setepontos.com/index.php?topic=11597.msg143198#msg143198
short <on> & <play> & <fw-update> boots to rec-mode.
long  <on> boots to play-mode.
&& wheel turns vice versa.
&& distortion after set_zoom ork.
All lifetime is a loan from eternity.


*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: SD980 port
« Reply #164 on: 23 / May / 2020, 11:45:24 »
The easy part seems done by swapping the values.  8)
Code: [Select]
kbd.c line 149,150: '<' & '>' to:
long get_jogdial_direction(void) {
 old_jogdial=new_jogdial;
 new_jogdial=Get_JogDial();
 if (old_jogdial>new_jogdial) return JOGDIAL_LEFT;
 else if (old_jogdial<new_jogdial) return JOGDIAL_RIGHT;
 else return 0;
}

sub/.../boot.c line 156 to:
    *(int*)(0x23DC)= (*(int*)0xC0220128) & 1 ? 0x800000 : 0x400000;
Distortion after set_zoom ork. gone with r5512.
--? FW_update still extracts lens.

 :-[ Compiling now appends -0.zip not -5512.zip
« Last Edit: 23 / May / 2020, 15:49:47 by Caefix »
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 14080
Re: SD980 port
« Reply #165 on: 23 / May / 2020, 20:14:37 »
The easy part seems done by swapping the values.  8)
Thanks. Changed in r5513.

Just to confirm, the jogdial in CHDK menus should work the same as in Canon menus: Clockwise = down.

What canon firmware is your SD980?
Quote
:-[ Compiling now appends -0.zip not -5512.zip
This probably means svnversion didn't work for some reason, either because your source isn't in a working copy, or the working copy is not from a compatible SVN version.

edit:
For the startup check, do you mean your code works correctly, except when FW update is used?
« Last Edit: 24 / May / 2020, 00:29:42 by reyalp »
Don't forget what the H stands for.

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: SD980 port
« Reply #166 on: 25 / May / 2020, 12:36:23 »
 :) ..., except when FW update is used, yes. (My_fw=101c)

There´s another jogdial issue: :o
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)
« Last Edit: 25 / May / 2020, 14:27:44 by Caefix »
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 14080
Re: SD980 port
« Reply #167 on: 25 / May / 2020, 15:20:51 »
:) ..., except when FW update is used, yes. (My_fw=101c)
Are you sure you're building the FI2? You need to have the key in platform/fi2.inc, and have OPT_FI2 set.

Looking at the disassembly, your (swapped) version seems correct to me. I've a attached a test build, FI2 included. This also changes kbd.c to remove the unneeded stack replacement

Quote
There´s another jogdial issue: :o
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)
I'm very surprised key left and right don't work on old ports like S90. Are you sure? Or is the Canon UI just not in a state that it does anything in response?
Don't forget what the H stands for.


*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: SD980 port
« Reply #168 on: 25 / May / 2020, 15:43:44 »
 :) Your test.zip boots are all 3 fine.
JogDialTest.Lua should perform 4 moves in the wheel-click combo, not 2.
Clicks allone work. (& my compilates are chdk/ & diskboot.bin only)
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 14080
Re: SD980 port
« Reply #169 on: 25 / May / 2020, 19:28:45 »
:) Your test.zip boots are all 3 fine.
Thanks, checked in.

edit:
I started a new thread for the jogdial issues, since it sounds like it involves other cameras: https://chdk.setepontos.com/index.php?topic=14048.msg143516#msg143516
« Last Edit: 25 / May / 2020, 21:41:42 by reyalp »
Don't forget what the H stands for.

 

Related Topics