exposurses

Timeline
Login

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

41 ancestors of [d4b0749e89]

2013-09-15
21:25
Ignore selection of OVER/UNDER check-in: d4b0749e89 user: base@atomicules.co.uk tags: trunk, temp
17:22
Add under/over exposure indication in check-in: 216708513b user: base@atomicules.co.uk tags: trunk, temp
2013-09-13
09:31
Fix menu numbering (from adding exposure menu in) check-in: b12e9bb5c7 user: base@atomicules.co.uk tags: trunk, temp
2013-09-12
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: trunk, temp

2013-09-11
21:46
For ref: Try separate win and menu functions check-in: 878d5d8315 user: base@atomicules.co.uk tags: trunk, temp
21:44
Add debug options to Makefile check-in: 095cfb3932 user: base@atomicules.co.uk tags: trunk, temp2
21:41
For ref: Wrap menu and window creation in function check-in: 284f5d1a81 user: base@atomicules.co.uk tags: trunk, temp2
2013-09-10
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
2013-07-13
22:13
Make "make clean" actually clean everything check-in: 7c39adc01d user: atomicules@lavabit.com tags: origin/master, trunk
2013-07-11
12:06
Test using the User Pointer to change another menu

Requires the Window and Menu variables to be global(?) in scope. I.e.
move outside of main routine.

Interesting thing about the refreshing of the other menu... check-in: 328662366f user: atomicules@lavabit.com tags: origin/master, trunk

2013-07-10
13:14
Add initial usage of the User Pointer

Still need a way to get to the third menu and also need to actually do
something with the User Pointer function.

Baby steps though. check-in: b4468458f4 user: atomicules@lavabit.com tags: origin/master, trunk

13:13
Identation changes only

Was meant to be like this in the first place check-in: b5ca845268 user: atomicules@lavabit.com tags: origin/master, trunk

13:12
Remove unnecessary items from arrays

At least I don't think these are needed? check-in: e4e256f8b0 user: atomicules@lavabit.com tags: origin/master, trunk

12:29
Fix pointer types

Or whatever the hell they are called. Inadvertently set these wrong when
adding in the third menu. check-in: 18f4d20e48 user: atomicules@lavabit.com tags: origin/master, trunk

2013-07-08
09:03
Add starter of a README file check-in: 91deaaa03b user: atomicules@lavabit.com tags: origin/master, trunk
08:58
Add Makefile and config.mk

Probably overkill for such a tiny file, but good practice for me. check-in: fc1d33f903 user: atomicules@lavabit.com tags: origin/master, trunk

08:55
Add in values for the three menus check-in: 4b63a4b0a2 user: atomicules@lavabit.com tags: origin/master, trunk
08:55
Enable switching between windows with left/right keys

- Oh my, I've ended up using pointers to pointers already! Use this so
can switch the menu/win "pointing" at with left and right keys and
then scroll up down the active one.
- Also means need to just use plain getch and not wgetch as don't want
to limit input to one window.

I still don't get what determines an active window. Is it just cursor
position? check-in: db667542ca user: atomicules@lavabit.com tags: origin/master, trunk

08:55
First attempt at getting two menus side by side

Tricky bit was that have to re-create my_items. I thought I'd be able to
re-use that for the sake of this test. But without recreating it the
second menu is blank. check-in: 8fab8d5ebf user: atomicules@lavabit.com tags: origin/master, trunk

08:55
Re-ident, fix comment typo, slight re-format check-in: 18fbc02037 user: atomicules@lavabit.com tags: origin/master, trunk
08:55
Add note about where file is from/based on check-in: a7bd8579c0 user: atomicules@lavabit.com tags: origin/master, trunk
08:54
Rename file check-in: 40ac3fa835 user: atomicules@lavabit.com tags: origin/master, trunk
2013-06-24
20:55
Add menu_scroll.c example as basis to start from

Example from here:
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/intro.html check-in: 97c4a398a9 user: atomicules@lavabit.com tags: origin/master, trunk