changelog of trunk including comments / devtalk - page 7 - General Discussion and Assistance - CHDK Forum

changelog of trunk including comments / devtalk

  • 299 Replies
  • 241419 Views
*

Offline reyalp

  • ******
  • 14121
Re: changelog of trunk including comments / devtalk
« Reply #60 on: 08 / November / 2009, 02:31:52 »
Advertisements
In changeset 831 I've updated most* of the cameras that use playrec_mode to treat 4 as record mode as well.

Rational: We already have a variable to check for menu mode, and the camera still is in record mode even if the menu is displayed.

See: http://chdk.setepontos.com/index.php/topic,2468.msg42154.html#msg42154

* exceptions: a560 (treats 1 and 2 as record) and s2is (treats 1 as record and everything else as play)
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14121
Re: changelog of trunk including comments / devtalk
« Reply #61 on: 30 / November / 2009, 23:09:22 »
In changeset 846  I've made ubasic_test.exe work again.  To use it, do make check in the lib\ubasic, then run ubasic_test <your bas file>
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14121
Re: changelog of trunk including comments / devtalk
« Reply #62 on: 02 / December / 2009, 04:40:55 »
changeset 847 should pretty much complete play/rec and capture mode override support.

NOTE: the meaning of set_capture_mode in lua has changed. It now takes a CHDK mode value, not a propcase value!. If you have been using this in any recent builds, replace it with set_capture_mode_canon.

There are tests scripts included in the CHDK/SCRIPTS/TEST folder. I encourage people to use http://chdk.wikia.com/wiki/LUA/Scripts:Standard/Test/Setmode in batch mode, and report their results (with log files) in http://chdk.setepontos.com/index.php/topic,3228.90.html

This commit involved fairly substantial re-organization of the modemap related code. Not only was this needed to implement the script features sanely, it will also make it easier to clean up mode handling more in the future. I don't think I've broken anything, but it's always possible.

Commit Message:

    Mode override support. See http://chdk.kernreaktor.org/mantis/view.php?id=64
    All cameras except ixus40_sd400 should be supported
    * add capture mode API. NOTE: behavior of set_capture_mode in lua HAS CHANGED!

        see http://chdk.wikia.com/wiki/CHDK_firmware_usage/MoreBest#set_record.28state.29 and following

    * move modemap to platform/<cam>/shooting.c so mode handling can be generic
    * move mode_get to platform/generic/shooting.c
    * add helper functions so mode_get can be generic

        rec_mode_active (checks play_rec_mode, weak, can be overriden on cameras that need it)
        screen_opened, screen_rotated: only defined on swivel screen cams, check phsw_ bits for screen pos

    * move old play/rec checking code to rec_switch_state. #ifdef'd out for now
    * move mode enum into it's own header file: modelist.h to allow easy lua generation.
    * use playrec_mode on tx1
    + add new generated lua file LUALIB/GEN/modelist.lua
    + add lua library LUALIB/capmode.lua see http://chdk.wikia.com/wiki/LUA/Scripts:Standard/Lualib/Capmode

    + add test scripts see
    http://chdk.wikia.com/wiki/UBASIC/Scripts:Standard/Test/Setmode
    http://chdk.wikia.com/wiki/LUA/Scripts:Standard/Test/Setmode
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 14121
Re: changelog of trunk including comments / devtalk
« Reply #63 on: 22 / December / 2009, 21:17:15 »
changeset 864 
* Preliminary support for calling event procedures and arbitrary functions. See http://chdk.wikia.com/wiki/LUA/LUA_Reference/Native_Function_Calls
* add support for byte and word access with peek and poke
* add lib/armutil/libarmutil.a for various arm code that doesn't belong elsewhere.
* move reverse_bytes_order lib/armutil

This should be quite useful for development in conjunction with the PTP interface. No more rebuild every time you want to try a different function, or writing special code to inspect the results :)
Don't forget what the H stands for.


*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: changelog of trunk including comments / devtalk
« Reply #64 on: 23 / December / 2009, 06:07:36 »
 

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: changelog of trunk including comments / devtalk
« Reply #65 on: 24 / December / 2009, 03:44:11 »
wow. looks like a great xmas present :)

*

Offline reyalp

  • ******
  • 14121
Re: changelog of trunk including comments / devtalk
« Reply #66 on: 24 / December / 2009, 17:11:26 »
In changeset 865 I've fixed lua handling of hex constants, so you can now use ROM addresses directly in peek, poke (not that that would work!), and call_func_ptr.

This is untested on dryos. I'm pretty sure it will work, but if someone can confirm with the following script, it would be nice:
Code: (lua) [Select]
if 0xFFFFFFFF == -1 then
print("ok")
else
print("lol",0xFFFFFFFF,"!=",-1)
end
sleep(1000)
PS: why does the script console sometimes disappear quickly ?
Don't forget what the H stands for.

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: changelog of trunk including comments / devtalk
« Reply #67 on: 24 / December / 2009, 18:20:45 »
It's also ok for dryos (a720). :)

Thx for your work.

Happy xmas  :xmas
CHDK-DE:  CHDK-DE links


*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: changelog of trunk including comments / devtalk
« Reply #68 on: 24 / December / 2009, 18:51:30 »
ok on
  SX10_101a,
  SD870_100c and
  SD400_101b
...as expected... Frohes Fest ! 

*

Offline reyalp

  • ******
  • 14121
Re: changelog of trunk including comments / devtalk
« Reply #69 on: 24 / December / 2009, 19:17:39 »
Thanks. No need to test on more cameras, the code appears to be 100% the same for all.
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal