static void shooting_subject_distance_bracketing(int when){ // first shot? (actually this is called just after the first shot has been taken) if (bracketing.shoot_counter == 0) { bracketing.subj_dist = shooting_get_subject_distance(); bracketing.subj_dist_step = conf.subj_dist_bracket_value; } // Adjust delta SD value for shot based on shot number bracketing.dsubj_dist += (bracketing.subj_dist_step * bracket_delta[conf.bracket_type][bracketing.shoot_counter&1]); // Calculate new SD int value = bracketing.subj_dist + (bracketing.dsubj_dist * bracket_steps[conf.bracket_type][bracketing.shoot_counter&1]); if (value < CAMERA_MIN_DIST) value = CAMERA_MIN_DIST; else if (value > CAMERA_MAX_DIST) value = CAMERA_MAX_DIST; // Inc for next shot bracketing.shoot_counter++; // Apply value for next shot to be taken shooting_set_focus(value, when);}

static void shooting_subject_distance_bracketing(int when){ // first shot? (actually this is called just after the first shot has been taken) if (bracketing.shoot_counter == 0) { bracketing.subj_dist = shooting_get_subject_distance(); bracketing.subj_dist_step = conf.subj_dist_bracket_value; } // Adjust delta SD value for shot based on shot number bracketing.dsubj_dist += (bracketing.subj_dist_step * bracket_delta[conf.bracket_type][bracketing.shoot_counter&1]); // Calculate new SD int value = bracketing.subj_dist + (bracketing.dsubj_dist * bracket_steps[conf.bracket_type][bracketing.shoot_counter&1]); if (value < CAMERA_MIN_DIST) value = CAMERA_MIN_DIST; else if (value > CAMERA_MAX_DIST) value = CAMERA_MAX_DIST; // Inc for next shot bracketing.shoot_counter++; // Apply value for next shot to be takenif (bracketing.shoot_counter <= props.TIMER_SHOTS) {shooting_set_focus(value, when)};}

Started by fudgey Feature Requests

Started by Andy Y « 1 2 3 » Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)

Started by Geezer General Help and Assistance on using CHDK stable releases

Started by Andy Y General Help and Assistance on using CHDK stable releases

Started by KlaMa General Help and Assistance on using CHDK stable releases