Skip to content

Commit e8ec2ad

Browse files
authored
The current calculation for Y level was slightly off causing mis-detections at the bottom row. (#1279)
1 parent 5dfa6ac commit e8ec2ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SerialPrograms/Source/PokemonHome/Programs/PokemonHome_BoxNavigation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ std::array<size_t, 2> find_occupied_slots_in_box(
185185
int num_empty_slots = 0;
186186
for (size_t row = 0; row < BOX_ROWS; row++) {
187187
for (size_t col = 0; col < BOX_COLS; col++) {
188-
ImageFloatBox slot_box(0.06 + (0.072 * col), 0.2 + (0.1035 * row), 0.03, 0.057);
188+
ImageFloatBox slot_box(0.06 + (0.072 * col), 0.2 + (0.105 * row), 0.03, 0.057);
189189
int current_box_value = (int)image_stddev(extract_box_reference(screen, slot_box)).sum();
190190

191191
ss << current_box_value;

0 commit comments

Comments
 (0)