[Positioning] MinMax: Fix start/stop and < vs. <=
This commit is contained in:
parent
814ff2b651
commit
a9ac8616e8
|
@ -25,7 +25,7 @@ Point3D MinMax::multilaterate(
|
|||
if (dist > d_max)
|
||||
d_max = dist ;
|
||||
}
|
||||
if (d_max < min)
|
||||
if (d_max <= min)
|
||||
{
|
||||
min = d_max ;
|
||||
centre.set_coordinates(x, y, z) ;
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
class MinMax: public MultilaterationMethod
|
||||
{
|
||||
protected:
|
||||
const Point3D &start ;
|
||||
const Point3D &stop ;
|
||||
const Point3D start ;
|
||||
const Point3D stop ;
|
||||
float step ;
|
||||
|
||||
static const float MINMAX_DEFAULT_STEP = 0.5 ;
|
||||
|
|
Loading…
Reference in New Issue