exposurses

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 most recent check-ins

2018-06-09
11:21
Update image link in README for fossil Leaf check-in: 13032180e6 user: atomicules tags: master, trunk
2018-06-05
11:26
Formatting check-in: 5ad33f648f user: noreply@github.com tags: master, trunk
2014-02-11
12:19
Swap year/name

(I don't know! Hopeless!) check-in: 2a36747a14 user: atomicules@users.noreply.github.com tags: master, trunk

12:18
Add license check-in: e260f20049 user: atomicules@users.noreply.github.com tags: master, trunk
2013-09-19
21:48
Tweak README Leaf check-in: 9b32672308 user: base@atomicules.co.uk tags: origin/master, trunk
2013-09-18
21:35
Add screenshot to README check-in: 2a307b38c7 user: base@atomicules.co.uk tags: origin/master, trunk
14:21
Tweak menu widths, make future adjustment more flexible check-in: 338867e3ed user: base@atomicules.co.uk tags: origin/master, trunk
13:34
Remove some spurious trailing tabs check-in: fee7533a30 user: base@atomicules.co.uk tags: origin/master, trunk
12:51
I never noticed it originated in DOS format. Poop check-in: 0b2d1fbf49 user: base@atomicules.co.uk tags: origin/master, trunk
12:49
Clean up comments check-in: 946bdcbbb6 user: base@atomicules.co.uk tags: origin/master, trunk
12:49
Split out ITEM creation into separate func so can clean on exit

I still hadn't got things quite right from when I'd split out the menu
and window creation functions. The segfault on exit was due to the item
pointers I thought existed not actually existing.

Need to make sure they exist as expected as otherwise I can't free up
the memory, etc.

Yay, pretty much done. check-in: d39151ac51 user: base@atomicules.co.uk tags: origin/master, trunk

12:49
Ignore selection of OVER/UNDER in shutter/aperture menus

Since this seems easier than trying to prevent selection. check-in: 4cc8e33f3c user: base@atomicules.co.uk tags: origin/master, trunk

12:48
Add under/over exposure indication in to the shutter/aperture menus

Keeping the NULLs in makes array indices very confusing, but this seems
to be the right thing to do. check-in: 7312ab2b6f user: base@atomicules.co.uk tags: origin/master, trunk

11:01
Fix menu numbering (from adding exposure menu in)

Didn't change functionality (it was still working), but just gives
better consistency to the code. check-in: 4a3cabadc2 user: base@atomicules.co.uk tags: origin/master, trunk

11:01
Make the add_menu and add_win subs work

I was still using the "variable pointers" technique, well trying to, and
it wasn't working for things like `set_menu_win` so pull this back out
into main.

Seg faults on exit, but haven't fixed that bit yet. check-in: c2741c67e7 user: base@atomicules.co.uk tags: origin/master, trunk

11:01
Try separate win and menu functions

instead of trying to wrap everything in one. This way I know I can
return the correct thing and I know I'm setting things as expected.

As opposed to previous attempt where I was (trying) to use variable
pointers, but with pointers to pointers, etc. And was obviously a bit
beyond me. check-in: e4268c4b4e user: base@atomicules.co.uk tags: origin/master, trunk

10:44
Add debug options to Makefile

Not as simple as adding `-g` option as also need to ensure not calling
the `-s` option which strips the debug info.

Decided to change so have a `make` and a `make debug` check-in: 86fd753f70 user: base@atomicules.co.uk tags: origin/master, trunk

10:33
For ref: Try wrapping menu and window creation in single function

Got this so it drew everything ok, but segfaults as soon as a key is
pressed. I obviously don't understand pointers, etc properly yet. As
although it's drawn the menus it hasn't "attached" them the the
objects/pointers I was expecting. check-in: a88f7285c1 user: base@atomicules.co.uk tags: origin/master, trunk

2013-09-17
22:43
Split out ITEM creation into separate func so can clean on exit

As otherwise can't free up the memory, etc. This makes clean up work

Yay, pretty much done. Leaf check-in: cf92beadf9 user: base@atomicules.co.uk tags: temp, trunk

2013-09-15
21:25
Ignore selection of OVER/UNDER check-in: d4b0749e89 user: base@atomicules.co.uk tags: temp, trunk
17:22
Add under/over exposure indication in check-in: 216708513b user: base@atomicules.co.uk tags: temp, trunk
2013-09-13
09:31
Fix menu numbering (from adding exposure menu in) check-in: b12e9bb5c7 user: base@atomicules.co.uk tags: temp, trunk
2013-09-12
12:02
For ref: That should have always been a pointer

Although this version still no worky Leaf check-in: b786f69eac user: base@atomicules.co.uk tags: temp2, trunk

11:59
Make the add_menu and add_win subs work

Seg faults on exit, but haven't fixed that bit yet. check-in: ecdc9d9bca user: base@atomicules.co.uk tags: temp, trunk

2013-09-11
21:46
For ref: Try separate win and menu functions check-in: 878d5d8315 user: base@atomicules.co.uk tags: temp, trunk
21:44
Add debug options to Makefile check-in: 095cfb3932 user: base@atomicules.co.uk tags: temp2, trunk
21:41
For ref: Wrap menu and window creation in function check-in: 284f5d1a81 user: base@atomicules.co.uk tags: temp2, trunk
21:33
WIP on temp: bafe457 For ref Leaf check-in: b1a123e70a user: base@atomicules.co.uk tags: refs/stash, trunk
21:33
index on temp: bafe457 For ref check-in: d2e1d0e68b user: base@atomicules.co.uk tags: refs/stash, trunk
2013-09-10
13:40
For ref check-in: de620ef542 user: base@atomicules.co.uk tags: refs/stash, trunk
08:51
Make exposure menu functional

- Make it function so that user is constrained to exposure menu
initially and must select value there.
- Once selected, the ISO menu becomes active and user must select value
there
- Finally make both shutter and aperture menus actives (switch between
them with left/right arrow keys). Whichever is selected, the other
will be calculated.

This is not very pretty:

- I don't like having both the selection_counter and menu_counter. Seems
almost redundant. Made sense before I constrained selections and
stepped through the menu's etc (and therefore you could re-select),
but now seems annoying to have to keep it only for how last two menus
work.
- I don't like the repetitive menu creation stuff. That should be DRY-ed
up. check-in: 580afe6ab4 user: base@atomicules.co.uk tags: origin/master, trunk

2013-09-03
12:38
Add in EV menu, doesn't function yet though

- Add in free memory bits, also missed some for the other menus check-in: 6c315c3200 user: base@atomicules.co.uk tags: origin/master, trunk

2013-09-02
14:32
Learning notes and better forced refreshing of menus

- Add learning notes
- Use scroll page up/down and item up/down to force refresh and stop
two items showing as selected check-in: dd2fc74444 user: base@atomicules.co.uk tags: origin/master, trunk

13:27
Enable exit key, change help text to suit check-in: 2dc1212485 user: base@atomicules.co.uk tags: origin/master, trunk
10:20
Implement exposure equations and matching for Aperture menu

Also: More evidence I am in a continual half-daze

- Need to define shutter value as double in `aperture` as otherwise both
arguments will be integers and I'm guessing it'd not going to work out
well. Plus... need to use `fraction_to_double` anyway to feed the
value in.
- Had done the "substring" thing wrong in `strncpy` and was one decimal
place off in getting the paerture value. I.e. would have got "1."
instead of "1.4" from "f/1.4"
- Like the fool I am, in the loop and the copy and paste I'd done, I'd
not changed from `aperture_array[0]` to `aperture_array[n]` check-in: 845d8653eb user: base@atomicules.co.uk tags: origin/master, trunk

09:47
I am King of Fail

I mean, just how? I think I need a few years more sleep or something check-in: 506ba48833 user: base@atomicules.co.uk tags: origin/master, trunk

09:29
Actually make it work this time.

See this commit: 8d3e66b5ecffa8bcf7691c3f0600840b934beb1a

I'm such an idiot.

- Remove `set_top_row` when setting the shutter menu to the correct
value. Leaving this in fooled me into thinking I had things working
because I just happened to test on the matching ISO/Aperture values.
Plonker. And then it turns out, there was loads wrong.
- Need to include stdlib.h for `strtod` function, otherwise it uses some
kind of stub function (no complaints in compile or use, but it just
doesn't work).
- Wasn't passing right kind of values to `shutter` anyway! Need to
convert these to numeric
- Need to use `fabs` not `abs` for doubles.
- In `nearest_match` wasn't using the correct arrays, had copied over
`iso_array` and forgotten to change them
- Use `strstr` instead `strchr` as couldn't get the former to work and
was probably the wrong one to be using
- Leave some commented out stuff at the bottom that I've been using for
debugging
- check-in: 68919dca22 user: base@atomicules.co.uk tags: origin/master, trunk

2013-08-31
07:50
Try to standardise on a string length

Since it doesn't matter if it's longer.
And I'm only using short strings. check-in: 99eba10b76 user: base@atomicules.co.uk tags: origin/master, trunk

07:47
Remove extraneous line that came from menu_scroll.c check-in: ed161d4179 user: base@atomicules.co.uk tags: origin/master, trunk
2013-08-29
23:24
Implement functionality to calc req'd and then sel nearest match in menu

So far only implemented on Shutter menu, i.e. have to select ISO and
Aperture, it will then use the equations to calculate the exact required
shutter speed, but then select the nearest value in the menu.

In order to do that added these two functions:

- nearest_match
- fraction_to_double

The latter needed, because need to convert "1/1000", etc into float. For
Aperture menu items can just strip off the "f/".

Seems to work for Sunny 16. check-in: 6513b427e7 user: base@atomicules.co.uk tags: origin/master, trunk

2013-08-27
12:00
Fix order of arguements in exposure functions check-in: c663824d67 user: base@atomicules.co.uk tags: origin/master, trunk
11:37
Whoopsie! Can't re-arrange equations it seems. check-in: 1e61137082 user: base@atomicules.co.uk tags: origin/master, trunk
2013-08-26
22:02
More whitespace changes (mainly). What the hell?! check-in: a7ef007409 user: base@atomicules.co.uk tags: origin/master, trunk
2013-08-25
22:02
Whitespace / retabbing changes check-in: de652712ec user: base@atomicules.co.uk tags: origin/master, trunk
21:50
Makes the basic menu interaction work (select 2, set other)

Track the selected values, but for now still do the dummy row shift
thing. check-in: 10d5131043 user: base@atomicules.co.uk tags: origin/master, trunk

2013-08-24
15:53
Whitespace changes for consistent formatting check-in: 8669035245 user: base@atomicules.co.uk tags: origin/master, trunk
15:52
Ensure two different menus have been selected before executing check-in: 5f0ed62195 user: base@atomicules.co.uk tags: origin/master, trunk
2013-08-17
19:35
Add initial left/right menu navigation

not at all DRY though at the moment. check-in: 0ecf3fd90c user: base@atomicules.co.uk tags: origin/master, trunk

12:23
Add exposure equations (don't do anything yet though) check-in: 2264820974 user: base@atomicules.co.uk tags: origin/master, trunk
12:18
Rename arrays to free up name for functions check-in: bd27f3bed9 user: base@atomicules.co.uk tags: origin/master, trunk