From b724ad7ab7b3cc9ba16506ec41ca33ce3e1b12f2 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Wed, 3 Jul 2013 10:14:04 -0400 Subject: [PATCH] [Positioner] Autocalibration: cosmetics init_cp() becomes private instead of protected and is documented. Class description improved. --- owlps-positioner/autocalibration.hh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/owlps-positioner/autocalibration.hh b/owlps-positioner/autocalibration.hh index a62bb1a..297f377 100644 --- a/owlps-positioner/autocalibration.hh +++ b/owlps-positioner/autocalibration.hh @@ -23,10 +23,7 @@ class Point3D ; #include #include -/** - * The class Autocalibration contains the code used to generate single - * reference points from the autocalibration measurements. - */ +/// Generates reference points from autocalibration measurements class Autocalibration { private: @@ -64,6 +61,11 @@ private: /// Generated measurements' list std::unordered_map measurements ; + /// Initialises a struct cp with the values from `s` + void init_cp( + std::map::const_iterator> >::const_iterator s) ; + protected: /// Number of generated "virtual" mobiles static uint32_t nb_virtual_mobiles ; @@ -77,9 +79,6 @@ protected: void sort_reference_cps(void) ; /// Computes the weight of the selected CP(s) void weight_cps(void) ; - void init_cp( - std::map::const_iterator> >::const_iterator s) ; /// Weights two CPs according to their angles void weight_2_cps(void) ; /// Computes the SS of the virtual mobile