Skip to content

Commit

Permalink
Auto adjust map resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmnet committed Apr 8, 2023
1 parent dc1d362 commit 991bb2e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public MAVGCLOctoMap(IMAVController control) {
model.grid.count = -1;
return;
}

if(grid.resolution != this.getResolution()) {
clearAndChangeResolution(grid.resolution);
}

for(int i=0;i< grid.data.length;i++) {
if(grid.data[i] > 0) {
Expand Down

0 comments on commit 991bb2e

Please sign in to comment.