[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:
Matteo Cypriani 2013-06-21 17:51:24 -04:00
parent e9f5f26504
commit 9144ef3740
2 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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) ;
}