Confusion over get_iso_mode() - General Discussion and Assistance - CHDK Forum

Confusion over get_iso_mode()

  • 5 Replies
  • 2010 Views
Confusion over get_iso_mode()
« on: 29 / January / 2020, 16:43:04 »
Advertisements
I thought I knew what I was doing, but I obviously don't  >:(

I'm using get_iso_mode(), which I though returned the ISO, as written in the Lua cross refence:

Quote
get_iso_modeEdit

    obtain ISO mode (the former get_iso)

    Eg. the A620 list
    0-> Auto "
    50-> 50 "
    100-> 100,
    200-> 200,
    400-> 400,

But what gets return are single digit numbers: 1, 2, 3 etc.

Can someone put me out of my misery please.

As I say, 'all' I want is the ISO as a number  ;)


Update.


Just read the old get_iso, so now see the above is written incorrectly in the cross ref.
« Last Edit: 29 / January / 2020, 18:00:19 by pigeonhill »

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Confused: Again!!!
« Reply #1 on: 29 / January / 2020, 17:54:36 »
get_iso_mode() returns a number for the recent ISO mode.

-1=HiISO
0=AutoISO
1=(50) 80
2=100
3=200
4=400
5=800
6=1600
7=3200
...

get_iso_market() returns the ISO value like the displayed value by Canon.
get_iso_real() returns the calculated ISO value.


Btw, the topic is bad for the forum search function.  ;)

msl

CHDK-DE:  CHDK-DE links

Re: Confusion over get_iso_mode()
« Reply #2 on: 29 / January / 2020, 18:03:32 »
@msl

Good point about the title: have changed it in OP

As soon as I spotted the typo on the cross reference, I got to where I wanted to be, ie using market value  :)

If a moderator is watching: pls feel free to delete the above.

Re: Confusion over get_iso_mode()
« Reply #3 on: 29 / January / 2020, 23:16:20 »
Wikia updated. get_iso_mode( )
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14125
Re: Confusion over get_iso_mode()
« Reply #4 on: 29 / January / 2020, 23:45:21 »
As I say, 'all' I want is the ISO as a number  ;)
You can use the ISO_MODE propcase directly. This returns 0 for auto, or the ISO number set in the canon UI.

Unfortunately, the values from get_iso_mode do not correspond to the same ISO value on every camera: For example, on g7x 1 is 125, while on other cameras it might be 80 or 100.
Don't forget what the H stands for.

Re: Confusion over get_iso_mode()
« Reply #5 on: 30 / January / 2020, 02:06:47 »
@reyalp

Quote
You can use the ISO_MODE propcase directly.

Thanks: that did it  :)

 

Related Topics


SimplePortal © 2008-2014, SimplePortal