[Positioner] RealPosition: fix calib request bug
Fix the RealPosition::compute() bug that prevented the real position to be extracted for a CalibrationRequest.
This commit is contained in:
parent
e9f5f26504
commit
9144ef3740
3
TODO.t2t
3
TODO.t2t
|
@ -180,7 +180,8 @@ Work to do in OwlPS
|
|||
|
||||
== Known bugs ==
|
||||
|
||||
- Cannot compute the error (Real) for autocalibration requests.
|
||||
- With autocalibration on, all the CPs declared in listeners.csv must
|
||||
be in coverage or the reference points will not be generated.
|
||||
|
||||
- Unit tests are currently unmaintained. Do not try to run them.
|
||||
|
||||
|
|
|
@ -28,10 +28,10 @@ Result RealPosition::compute(const Request &request)
|
|||
if (calibration_request != NULL)
|
||||
coordinates = static_cast<Point3D*>(
|
||||
calibration_request->get_reference_point()) ;
|
||||
else
|
||||
coordinates = request.get_real_position() ;
|
||||
|
||||
coordinates = request.get_real_position() ;
|
||||
if (coordinates)
|
||||
return Result(&request, name, *coordinates) ;
|
||||
|
||||
return Result(&request, name) ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue