Skip to content

Commit

Permalink
Fixed Aspect Ratio scaling for Y
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentva authored May 11, 2017
1 parent 3e8c65a commit b42a247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pozyx_ready_to_localize/pozyx_ready_to_localize.pde
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void calculateAspectRatio(){
for (PozyxDevice pozyxDevice : pozyxDevices){
int[] pos = pozyxDevice.getCurrentPosition();
max_width_mm = max(max_width_mm, pos[0]);
max_height_mm = max(max_height_mm, pos[0]);
max_height_mm = max(max_height_mm, pos[1]);
}
max_width_mm += 2*border;
max_height_mm += 2*border;
Expand Down Expand Up @@ -223,4 +223,4 @@ void keyPressed() {
// resets the scale to the current area taken by the devices. Useful if you moved too much outside of the anchor area.
pixel_per_mm = 0.5;
println("Resetting area size");
}
}

0 comments on commit b42a247

Please sign in to comment.