Skip to content

Commit fdf435f

Browse files
halted stay_awake and put defaults for auto exposure for better images
1 parent 29604c5 commit fdf435f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/application/lua_libraries/camera.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,12 +561,12 @@ static int lua_camera_auto(lua_State *L)
561561
}
562562

563563
// Default auto exposure settings
564-
camera_metering_mode_t metering = AVERAGE;
565-
double target_exposure = 0.18;
566-
double exposure_speed = 0.50;
567-
double shutter_limit = 3072.0;
564+
camera_metering_mode_t metering = CENTER_WEIGHTED;
565+
double target_exposure = 0.1;
566+
double exposure_speed = 0.45;
567+
double shutter_limit = 16383.0;
568568
double analog_gain_limit = 16.0;
569-
double rgb_gain_limit = 141.0;
569+
double rgb_gain_limit = 287.0;
570570

571571
// Default white balance settings
572572
double white_balance_speed = 0.5;

source/application/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static void hardware_setup()
331331
{
332332
LOG("Factory reset");
333333
bluetooth_unpair();
334-
// stay_awake = true;
334+
stay_awake = true;
335335
}
336336
}
337337

0 commit comments

Comments
 (0)