fix end detection
This commit is contained in:
parent
c2f680b344
commit
14fa680c43
1 changed files with 2 additions and 1 deletions
|
@ -299,8 +299,9 @@ public class GPXUtilities {
|
|||
channelBase = channelBottom;
|
||||
channelTop = point.ele;
|
||||
climb = true;
|
||||
}
|
||||
// End detection without breakout
|
||||
} else if (j == numberOfPoints -1) {
|
||||
if (j == (numberOfPoints -1)) {
|
||||
if ((channelTop - channelBase) >= channelThres) {
|
||||
diffElevationUp += channelTop - channelBase;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue