Author Topic: SX200is Porting  (Read 102093 times)

Offline ADamb

  • Rookie
  • *
  • Posts: 35
Re: SX200is Porting
« Reply #495 on: 27 / September / 2009, 15:53:41 »
@OldGit
I think there is no need to change core/kbd.c (compare with sx10 code)
SX200 IS-100C

Offline nandoide

  • Rookie
  • *
  • Posts: 29
Re: SX200is Porting
« Reply #496 on: 27 / September / 2009, 15:58:41 »
ADamb, OK, then I agree with you and the sx10is way.

OldGit, the patch for edgeoverlay is OK.

I couldn't say nothing now about kbd, but it could be KO in SX10is.

Thanks




« Last Edit: 27 / September / 2009, 16:10:49 by nandoide »

Offline OldGit

  • Sr. Member
  • ****
  • Posts: 303
Re: SX200is Porting
« Reply #497 on: 27 / September / 2009, 18:21:04 »
@Nandoide / ADamb,
the core\kbd.c holds a table for zoom-step indices and should be the same as that used for fl_tbl in platform\sx200\main.c.
I think sx10 is wrong on this. See other ports
SX200 IS-100C

Offline ADamb

  • Rookie
  • *
  • Posts: 35
Re: SX200is Porting
« Reply #498 on: 27 / September / 2009, 18:28:29 »
@OldGit
Concerning core\kbd.c:
You should put then #define ZSTEP_TABLE_SIZE 7
Here is table I obtained in the beginning:
} fl_tbl[] = {
  {   0,   5000},
  {   5,   5600},
  {  16,   6800},
  {  24,   7800},
  {  32,   9100},
  {  40,  10600},
  {  45,  11600},
  {  53,  13600},
  {  62,  16200},
  {  67,  17900},
  {  71,  19400},
  {  78,  22300},
  {  86,  26100},
  {  89,  27200},
  { 102,  35900},
  { 115,  46900},
  { 125,  60000},
};
« Last Edit: 27 / September / 2009, 18:32:32 by ADamb »
SX200 IS-100C

Offline OldGit

  • Sr. Member
  • ****
  • Posts: 303
Re: SX200is Porting
« Reply #499 on: 27 / September / 2009, 19:35:07 »
@ADamb,
I agree, just spotted that, I have asked for confirmation on the sx10 thread, but I also think we should use 7, and update kbd.c as suggested by the wiki.
When I tested it (with 7 and your main.c code) it all seems to work correctly.
Or we could use the complete table you have (all 17 points)
I know it is only a small thing, but I want to get as much as we can corrected before we move forward.
(that wat it doesn't get forgotten)
I was always told to "get one thing correct at a time" when you work with software.
OldGit
SX200 IS-100C

Offline ADamb

  • Rookie
  • *
  • Posts: 35
Re: SX200is Porting
« Reply #500 on: 27 / September / 2009, 20:07:59 »
@OldGit
I think 7 points is enough, continuing this way we can end up with 126 points table  :).
SX200 IS-100C

Offline smartkiller

  • Full Member
  • ***
  • Posts: 139
Re: SX200is Porting
« Reply #501 on: 27 / September / 2009, 22:04:31 »
Hallo

Is anyone working at the Video Zoom problem?

All other fixes good, we move forward with the port.

@ADamb  Has you Test the Zoom Bracket with a Script?


Smartkiller
SX200 IS Firm. 100c
SX1 IS Firm. 201a

Offline ADamb

  • Rookie
  • *
  • Posts: 35
Re: SX200is Porting
« Reply #502 on: 27 / September / 2009, 23:19:17 »
@smartkiller
Tested zoom with http://chdk.wikia.com/wiki/UBASIC/Scripts:_Zoom_Shoot "Take 2", works OK.
I never had zoom in video, attempt to manual focus with zoom control causes camera crash...
Maybe there is conflict with that "two speed" zoom(kbd.c):
   //      KEY_ZOOM_IN_SLOW   , 0x00000040 },
   //      KEY_ZOOM_OUT_SLOW    , 0x00000010 },
SX200 IS-100C

Offline Darkness

  • Jr. Member
  • **
  • Posts: 69
  • SX200IS 100D
Re: SX200is Porting
« Reply #503 on: 28 / September / 2009, 03:22:32 »
wohow, more than 10 extra pages in the week I was gone... I will read through it tomorrow

Nandoide, about your personal message about core changes, very impressive work in analyzing the different issues with the current code.
SX200IS 100D

CHDK Forum

Re: SX200is Porting
« Reply #503 on: 28 / September / 2009, 03:22:32 »

Online reyalp

  • Guru Member
  • ******
  • Posts: 4468
Re: SX200is Porting
« Reply #504 on: 28 / September / 2009, 09:34:40 »
I've applied oldgits patch from http://chdk.setepontos.com/index.php/topic,3994.msg40530.html#msg40530

Can someone verify the following the autobuilds:
- canon_menu_active and canon_shoot_menu_active behave correctly.
- the issue related to http://chdk.setepontos.com/index.php/topic,3994.msg40419.html#msg40419 is or is not resolved.


Don't forget what the H stands for.

Offline OldGit

  • Sr. Member
  • ****
  • Posts: 303
Re: SX200is Porting
« Reply #505 on: 28 / September / 2009, 10:10:03 »
Is anyone working at the Video Zoom problem?
I will, but I wanted to get all the current fixes in first.
Can we get the info for reyalp and confirm that.

I think then we should probably retest all bugs (open and closed) then go for it one bug at a time.

2 main problems I see are optical zoom and crash in edgeoverlay in play mode.
I can't get the cam to crask, is this still an open bug ?.

Need to go to work at the day job now, I'll check back tonight and see where we are.
OldGit
SX200 IS-100C

Offline smartkiller

  • Full Member
  • ***
  • Posts: 139
Re: SX200is Porting
« Reply #506 on: 28 / September / 2009, 10:17:37 »
I've applied oldgits patch from http://chdk.setepontos.com/index.php/topic,3994.msg40530.html#msg40530

Can someone verify the following the autobuilds:
- canon_menu_active and canon_shoot_menu_active behave correctly.
- the issue related to http://chdk.setepontos.com/index.php/topic,3994.msg40419.html#msg40419 is or is not resolved.




Hallo
I have made this changes on my Local Copy and this Works.
Then i have Download the current Autobuild (810) and that is in function identical.

Edgeoverlay is my opinion, is fixed now.

Zebra Modus has sproradic Errors, only the Solid Modus Works almost always.

Smartkiller

I will Test now "crash in edgeoverlay in play mode"
« Last Edit: 28 / September / 2009, 10:19:09 by smartkiller »
SX200 IS Firm. 100c
SX1 IS Firm. 201a

Offline smartkiller

  • Full Member
  • ***
  • Posts: 139
Re: SX200is Porting
« Reply #507 on: 28 / September / 2009, 10:27:04 »
I have Test now Edgeoverlay in Play Mode.

To test it i have made with half Shoot in Rec Mode a Edgeoverlay and saved it.

Then i Load it in Play Mode. It works, and i can move the Overlay with the Wheel around the Display.
No Crash, but it stays on Display when i Open the Canon Menu. I must jukk it in Alt Menu with FreeMemory.

Smartkiller
SX200 IS Firm. 100c
SX1 IS Firm. 201a

Online reyalp

  • Guru Member
  • ******
  • Posts: 4468
Re: SX200is Porting
« Reply #508 on: 28 / September / 2009, 10:37:46 »
Then i Load it in Play Mode. It works, and i can move the Overlay with the Wheel around the Display.
No Crash, but it stays on Display when i Open the Canon Menu.
This is on all cameras, it doesn't check canon_menu_active. I'm not sure why it's in main.c seems like it should be somewhere in the gui/osd code.
Don't forget what the H stands for.

Offline smartkiller

  • Full Member
  • ***
  • Posts: 139
Re: SX200is Porting
« Reply #509 on: 28 / September / 2009, 10:40:55 »
Then i Load it in Play Mode. It works, and i can move the Overlay with the Wheel around the Display.
No Crash, but it stays on Display when i Open the Canon Menu.
This is on all cameras, it doesn't check canon_menu_active. I'm not sure why it's in main.c seems like it should be somewhere in the gui/osd code.

Where i can Check it? I have start the Cam with both Options of Edgeoverlay on and it starts normal.
No Crash.

Was the Failure that it stays on Display when i open the Canon Menu?
Smartkiller
SX200 IS Firm. 100c
SX1 IS Firm. 201a

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal