Pages: Prev 1 2 3 4 [5]   Go Down
  Print  
Author Topic: changelog of trunk including comments / devtalk  (Read 8128 times)
0 Members and 1 Guest are viewing this topic.
reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #60 on: 08 / November / 2009, 07:31:52 »

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)
Logged

Don't forget what the H stands for.
reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #61 on: 01 / December / 2009, 04: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>
Logged

Don't forget what the H stands for.
reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #62 on: 02 / December / 2009, 09: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
Logged

Don't forget what the H stands for.
reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #63 on: 23 / December / 2009, 02: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 Smiley
Logged

Don't forget what the H stands for.
fe50
Guru Member
******
Offline Offline

Posts: 2128


IXUS50 & 860, SX10 Star WARs-Star RAWs


« Reply #64 on: 23 / December / 2009, 11:07:36 »

 
Logged

PhyrePhoX
Global Moderator
Guru Member
*****
Offline Offline

Posts: 2265


make RAW not WAR


« Reply #65 on: 24 / December / 2009, 08:44:11 »

wow. looks like a great xmas present Smiley
Logged

reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #66 on: 24 / December / 2009, 22: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
GeSHi (lua):
if 0xFFFFFFFF == -1 then
print("ok")
else
print("lol",0xFFFFFFFF,"!=",-1)
end
sleep(1000)
 
Created by GeSHI 1.0.7.20
PS: why does the script console sometimes disappear quickly ?
Logged

Don't forget what the H stands for.
msl
Jr. Member
**
Offline Offline

Posts: 93

A720 IS


« Reply #67 on: 24 / December / 2009, 23:20:45 »

It's also ok for dryos (a720). Smiley

Thx for your work.

Happy xmas  Xmas
Logged

fe50
Guru Member
******
Offline Offline

Posts: 2128


IXUS50 & 860, SX10 Star WARs-Star RAWs


« Reply #68 on: 24 / December / 2009, 23:51:30 »

ok on
  SX10_101a,
  SD870_100c and
  SD400_101b
...as expected... Frohes Fest ! 
Logged

reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #69 on: 25 / December / 2009, 00:17:39 »

Thanks. No need to test on more cameras, the code appears to be 100% the same for all.
Logged

Don't forget what the H stands for.
reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #70 on: 30 / May / 2010, 10:47:03 »

I've added a script to get the crash log. Developers may find this useful.
docs http://chdk.wikia.com/wiki/LUA/Scripts:Standard/Test/Romlog
script http://tools.assembla.com/chdk/browser/trunk/CHDK/SCRIPTS/TEST/romlog.lua

Some more work is needed to turn the vxworks version into a fully human readable form, should be pretty straightforward.
Logged

Don't forget what the H stands for.
reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #71 on: 08 / August / 2010, 00:19:21 »

Regarding changeset 919 Is the problem actually directory name length, or the fact that examples was lower case in the tree (ISTR there are some circumstances where a lower case name gets treated as a long name)

4 characters shouldn't be the limit, given that SCRIPTS is 7.

Not a big deal, just wondering.
Logged

Don't forget what the H stands for.
fe50
Guru Member
******
Offline Offline

Posts: 2128


IXUS50 & 860, SX10 Star WARs-Star RAWs


« Reply #72 on: 09 / August / 2010, 05:56:12 »

Regarding changeset 919 Is the problem actually directory name length, or the fact that examples was lower case in the tree (ISTR there are some circumstances where a lower case name gets treated as a long name)

4 characters shouldn't be the limit, given that SCRIPTS is 7.

Don't know since i don't own one of the affected cameras; i guess the limit is the length of the folder path...
Logged

ultimA
Jr. Member
**
Offline Offline

Posts: 68


« Reply #73 on: 13 / August / 2010, 08:20:15 »

Regarding changeset 919 Is the problem actually directory name length, or the fact that examples was lower case in the tree (ISTR there are some circumstances where a lower case name gets treated as a long name)

4 characters shouldn't be the limit, given that SCRIPTS is 7.

Not a big deal, just wondering.


I tried changing the directory to uppercase, but it did not help. So it is the length.
Logged
reyalp
Guru Member
******
Offline Offline

Posts: 2701


« Reply #74 on: 06 / September / 2010, 02:19:50 »

In changeset 935 I've tried to clean up some of the mess of camera specific #ifdefs for zebra. d10 and (probably) sd990 zebra is also fixed.

Please check the affected cameras
sx200is g11 ixus100_sd780 ixus95_sd1200 CAMERA_s90 sx20
to verify that I haven't broken anything.

Further cleanup or corrections are invited Wink In particular, it seems like ixus100_sd780 and ixus95_sd1200 don't actually need the aspect correction portion. Also, the 1 pixel border restore should be changed to no border restore at all, and probably be controlled by a different ifdef. We might want to have a general "camera doesn't have much memory" option.
Logged

Don't forget what the H stands for.
Pages: Prev 1 2 3 4 [5]   Go Up
  Print  
 
Jump to: