remaining video,overrides-customizations,no-raw@video,just _random_ stuff :D - page 4 - General Discussion and Assistance - CHDK Forum
supplierdeeply

remaining video,overrides-customizations,no-raw@video,just _random_ stuff :D

  • 44 Replies
  • 30024 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Advertisements
well i guess there must be a way to find out max zoom steps directly in firmware (in chdk). maybe ewavr reads this and has an answer :D
plus, i assume canon doesnt mention zoom steps in all manual books, i mean "8 zoom steps" isnt that great feature to boast with :D

*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720

PhyrePhoX:
It could be this way: if there's no feedback on a feature, it's either
- working flawless, or
- err... used by no one...


Jucifer is right. In my experience, it is the first case and that's why I didn't comment. Everything worked as advertised. Although the "cancel RAW during video" thing didn't work with my 64Mb SD card I use for CHDK tests, but with my 2Gb production ones did.

When one feature is working properly, nobody has further comments and the thread is buried. People are just waiting for these enhancements to be added. (And the desperate...well...we use Jucifer's YAP)

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
thanks for your comment. well yes, i guess you are right. people usually only complain when things arent working, they seldom report things to work flawlessly. i will take my diffs and thread apart and supply several "finished" diffs so it will be easier to include it in official trunk.
regarding the disable raw@video issue: ur sure u used my build on that 64MB sd card?

*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720
I tried again yesterday with my 64Mb card and disable raw@video worked.

The problem with this card is the buffer. Even for simple video, I have to reduce quality to 60%. Sloooooow card. But that's another isue.


*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
phew, and i thought i delivered buggy code :D
so, i think this can be neatly wrapped up and handed to allbest.
the stuff about ev correction and some ubasic commands will be left out for now though, as that definitly needs polishing.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
alright,

added following ubasic code:

get_zoom_steps - returns the possible zoomsteps (9 on a620, 129 on s3is for example)
get_nd_present - returns 0 if no ND present, 1 if ND present and real diaphragm NOT present, 2 if both ND & diaphragm present.
get_propset - returns 1 if propset 1,2 if propset is 2. propset 1 = digic II propsets, propset 2 = digic III propsets (see PropertyCase - CHDK Wiki )

now it should be possible to build universal scripts.

also i changed the random seed so that it uses luminance, tickcount & battery voltage. this (the random code) will be changed though, as it is still not "random enough".

i uncommented the experimental code that made it possible to quickly change ev via up/down buttons. have to find a way to use that on A-series (as up/down on these cams sets macro & flash already!).

i hope jucifer will add the diff to his build. will also cleanup the code soon so hopefully it will get submitted to official trunk, or at least parts of my code.
built against revision 390 (latest).

will post all binaries later (it is compiling at the moment...) and will also update first post.

Regarding Scripts: I did NOT delete or modify existing ubasic commands (thus my build wont break compatibility), HOWEVER, it *might* be possible that existing scripts will not work (probably hanging/crashing the camera), this is due to how the parser parses the code. IF some of your scripts do not work with my build, please report, it will be fixed. it is just a matter of "sorting" the ubasic commands so the the parser doesnt get a "hiccup".

edit: if you use my builds and you have used one of jucifers builds before, i advise you to backup your *.cfg file, and if any problems occur, delete the one from sdcard. these problems (if at all) should not occur if you wait for jucifer to include my diff into his build.
this is having to do with how the *.cfg file is built/parsed (it is not a bug!).

edit2: attached s3is build for barney, in case ( i do hope so) he still is coming here sometime.
edit3: darn, when looking at the errors.txt there is at least one case of an error introduced by me, seems i forgot to add movie_state to a definition of some cam somewhere. unfortunately the error.txt doesnt tell me in WHICH camera model this occurs. i figure it must be one of those newly added. will find out later.
also i noticed the tx1 isnt in the makefile yet, so there is no build for that, sorry (why is that by the way...?).

all binaries can be found here: zSHARE - 390_51_allbest_phyrephox.zip

edit4: tx1 probably is in the MAKEFILE, not in the makefile.inc. anyways, changed the diff so it compiles for tx1 as well.
edit5: tx1 binaries in the archive now
edit6: updated first post with ALL newly introduced ubasic commands (forgot that one time), so now in the first post you have a complete listing of all new ubasic commands which make life easier. for example the "yet another intervalometer" script can be made universal using my build now (just a hint, jucifer :D)
« Last Edit: 09 / May / 2008, 01:15:03 by PhyrePhoX »

*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
Sooo...

What about these modifications?

- separate iris-stuff from get_nd_present (to get_iris_present), both return 0/1 (or false/true in Lua) (also I might prefer without the get_)
- rename get_ready to get_shooting (propcase 205/206 is 0 when not shooting...) ("shooting" might be even better: do ... until shooting = 0 / repeat ... until not shooting())
I'd also like to change the uBASIC syntax of these, so they could be used without an intermediary variable.

Why is there "ubasic_camera_sleep(rand()%10);" in random_statement?  :blink:

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
thanks for your comment.
well well,

if we seperate iris from nd it would mean that scripts that possibly want to use both iris and nd have to make TWO checks. not a big deal though. on the other hand, if properly documented in the wiki the 0,1,2 (as result from get_nd_present) can be of practical use.
i will change it though, the way you suggested it is a good way.

i mean, did anybody ever calculate the actual limit (in number of commands) the ubasic parser (or chdk in general) can handle? i mean, i would be happy to extend the list of available commands by many things (to make it more universal and practical). maybe some more experienced chdk source code warriors can share their experience in this matter!? when is enough enough?

hm, get_ready was just a first idea, get_shooting is better, yes. i would like to leave the "get_" in front, as a way to show people that you can only GET a result, not SET something. dont wanna really break the syntax here.

i added the ubasic_camera_sleep(rand()%10); to change the tickcount in a semirandom way (which in turn is a seed for the random function), because the way it is now, in ubasic a command is executed every 10 ms, which means tickcount is incremented by 10 each time you execute random, which is not a good seed. on the other hand, i really am not a good mathematician (although i should be...), nor a good coder and friend of algorithms (although i should be), so please suggest better random functions. we dont really need a "real random", but tickcount alone (as seed) just doesnt cut it.
« Last Edit: 09 / May / 2008, 21:08:58 by PhyrePhoX »


*

Offline Jucifer

  • *****
  • 251
  • [A710IS]
If iris isn't separated from nd, the values should range up to 3: there are also cameras with iris, but without nd. ;)
I already separated iris from nd, changed get_ready to get_shooting.

What do you think, could we use the x=get_nd_present syntax instead of get_nd_present x? That way one could do
Code: [Select]
if get_nd_present=1 then do something
instead of
Code: [Select]
get_nd_present n
if n=1 then do something
.

In Lua you would do the former, that is
Code: [Select]
if get_nd_present() then do something end
.

Hm. I would like to remove the get_ from these, too. :]
I'll likely make a new build today.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Quote
If iris isn't separated from nd, the values should range up to 3: there are also cameras with iris, but without nd.
well, if get_nd_present returns 0, this means there is no ND present BUT iris is present.to my knowledge there are only three states: nd without iris, nd with iris, no nd with iris.
hm, you really wanna remove the get?

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal