What code are you looking at? In platform/d20/lib.c you should see the following:See the following http://trac.assembla.com/chdk/changeset/3007/trunk and forum link in the commit message.
Would it be OK to map the <video> button to both <video> and <display> for script input? Could we also map the <play> button to <display>, in case <video> is being used as <alt>?
Also, how often do the files in the full version of CHDK (i.e. the CHDK folder) change? That is, when do I have to update all the files on the SD card instead just the compiled ones? I updated the full versions for 1.3 for all my cameras, but I'm not sure this was necessary.
I think it would be better to make the script adapt it's button usage rather than make keys aliases to things that they don't actually do. If you map video to display, then click("display") will start recording a video.
This raises an issue that there isn't a good way for a script to find out what buttons are present. Perhaps we can address this in 1.3.
They change when they change, the only way to know is to follow the svn commits. In general, it's pretty rare, and the most likely changes would be something new in one of the autogenerated lua files.
That would be nice, too. Maybe that could be another auto generated file in CHDK/LUALIB even?
I noticed that CHDKPTP and PTPCamGUI were showing various errors related to those lua files, although they still worked. The errors seem to have gone away since I updated the files. Does that sound like what might happen with older files?
--[[@title Aperture Test@param p Log File@default p 1--]]function press_half() press("shoot_half") repeat sleep(10) until get_shooting()endfunction release_half() release("shoot_half") while(get_shooting())do sleep(10) endendprint_screen(p)print(os.date())bi=get_buildinfo()print("platform: ",bi.platform,bi.platsub)nzoom=get_zoom_steps()-1print("nzoom=",nzoom)set_zoom_speed(100)av0=0repeat for z=0,nzoom do set_zoom(z) press_half() av=get_av96() if(av~=av0)then click("shoot_full_only") av0=av print() end release_half() print(z,av,get_exp_count()) end print("set repeats, menu exits") wait_click()until is_key("menu")
Tue Sep 24 19:16:04 2013platform: d20 100bnzoom= 128[pointed at low light scene so ND filter is OUT][zoom step | av96 | IMG_xxxx | Displayed aperture (in play mode)]0 387 748 [F3.9]1 387 7482 387 7483 387 7484 387 7485 387 7486 387 7487 387 7488 387 7489 388 749 10 388 74911 388 74912 388 74913 388 74914 388 74915 388 74916 388 74917 388 74918 389 75019 389 75020 389 75021 389 75022 389 75023 389 75024 389 75025 390 75126 390 75127 390 75128 390 75129 390 75130 390 75131 391 75232 391 75233 391 75234 391 75235 391 75236 392 75337 392 75338 392 75339 392 75340 393 75441 393 75442 393 75443 393 75444 394 75545 394 75546 394 75547 394 75548 395 75649 395 75650 395 75651 396 75752 396 75753 396 75754 397 75855 397 75856 397 75857 398 75958 398 75959 398 75960 399 76061 399 76062 399 76063 400 761 [F4.5]64 400 76165 401 76266 401 76267 401 76268 402 76369 402 76370 403 76471 403 76472 404 76573 404 76574 405 76675 405 76676 406 76777 406 76778 407 76879 407 76880 408 76981 408 76982 409 77083 409 77084 410 77185 410 77186 411 77287 411 77288 412 77389 413 77490 413 77491 414 77592 415 77693 415 77694 416 77795 416 77796 417 77897 418 77998 418 77999 419 780100 420 781101 420 781102 421 782103 422 783104 422 783105 423 784106 424 785107 425 786108 425 786109 426 787110 427 788111 428 789112 428 789113 429 790114 430 791115 431 792116 431 792117 432 793 [F5.0]118 433 794119 434 795120 434 795121 435 796122 436 797123 437 798124 437 798125 438 799126 438 799127 439 800128 439 800[Pointed at bright light bulb so ND filter is IN]set repeats, menu exits0 579 801 [F8.0]1 579 8012 579 8013 579 8014 579 8015 579 8016 579 8017 579 8018 579 8019 580 80210 580 80211 580 80212 580 80213 580 80214 580 80215 580 80216 580 80217 580 80218 581 80319 581 80320 581 80321 581 80322 581 80323 581 80324 581 80325 582 80426 582 80427 582 80428 582 80429 582 80430 582 80431 583 80532 583 80533 583 80534 583 80535 583 80536 584 80637 584 80638 584 80639 584 80640 585 80741 585 80742 585 80743 585 80744 586 80845 586 80846 586 80847 586 80848 587 80949 587 80950 587 80951 588 81052 588 81053 588 81054 589 81155 589 81156 589 81157 590 81258 590 81259 590 81260 591 81361 591 81362 591 81363 592 814 [F9.0]64 592 81465 593 81566 593 81567 593 81568 594 81669 594 81670 595 81771 595 81772 596 81873 596 81874 597 81975 597 81976 598 82077 598 82078 599 82179 599 82180 600 82281 600 82282 601 82383 601 82384 602 82485 602 82486 603 82587 603 82588 604 82689 605 82790 605 82791 606 82892 607 82993 607 82994 608 83095 608 83096 609 83197 610 83298 610 83299 611 833100 612 834101 612 834102 613 835103 614 836104 614 836105 615 837106 616 838107 617 839108 617 839109 618 840110 619 841111 620 842112 620 842113 621 843114 622 844115 623 845116 623 845117 624 846 [F10]118 625 847119 626 848120 626 848121 627 849122 628 850123 629 851124 629 851125 630 852126 630 852127 631 853128 631 853set repeats, menu exits*** FINISHED ***
//TO DO: Is this right? http://chdk.setepontos.com/index.php?topic=9722.msg100580#msg100580const ApertureSize aperture_sizes_table[] = { { 9, 387, "3.9" }, { 10, 399, "3.9" }, { 11, 431, "4.5" }, { 12, 439, "5.0" }, { 13, 575, "8.0" }, { 14, 600, "9.0" }, { 15, 618, "10.0" },};
// These F-numbers are the "mock" values shown by the cam.// They're linked to FL (zoom) and ND filter.// aperture_sizes_table[].id is just a serial number.const ApertureSize aperture_sizes_table[] = { // PROPCASE 23 { 9, 292, "2.8" }, // zoom 1.0 { 10, 308, "3.2" }, // zoom 1.2 { 11, 326, "3.2" }, // etc. { 12, 348, "3.5" }, { 13, 375, "4.0" }, { 14, 409, "4.5" }, { 15, 449, "4.9" },// The rest are the same physical apertures as above, but with ND: { 16, 575, "8.0" }, { 17, 591, "9.0" }, { 18, 609, "9.0" }, { 19, 631, "10.0" }, { 20, 658, "11.0" }, { 21, 692, "13.0" }, { 22, 732, "14.0" },};
http://chdk.setepontos.com/index.php?topic=9722.msg100580#msg100580I looked at the log data mentioned in this post, and it looks like the ND filter was always OUT. set_nd_filter() doesn't work, because the camera just overrides it to set aperture.
I don't think these table values are correct.
I wouldn't expect set_nd_filter to affect the propcase or exif values, it doesn't on my D10. As far as I know, the av is only updated to reflect the ND filter when the canon firmware controls it.
QuoteI don't think these table values are correct.Why not? Aside from 3.9 appearing twice, it seems OK to me. You script shows that the av96 values varies continuously with zoom, but there are only a few values displayed in the UI. This is typical for cameras with a lot of zoom steps.
The table is mainly used for cameras that have an adjustable aperture anyway, so it probably doesn't matter at all.
Started by salukikev Script Writing
Started by rdumont99 Firmware Dumping
Started by slandier « 1 2 » RAW Shooting and Processing
Started by Recyclojunk64 « 1 2 3 » Hotwire! Hardware Mods, Accessories and Insights
Started by edwarddebruyn General Help and Assistance on using CHDK stable releases