[Positioning] Add option position-calibration-requests
This option allows the calibration requests to be positioned as positioning requests.
This commit is contained in:
parent
2ddad20371
commit
ea81916937
|
@ -76,6 +76,13 @@ csv-file = /tmp/owlps-positioning.log
|
||||||
# it is not activated by default for security purposes.
|
# it is not activated by default for security purposes.
|
||||||
#accept-new-calibration-requests = false
|
#accept-new-calibration-requests = false
|
||||||
|
|
||||||
|
# If you activate the above option and want the calibration requests
|
||||||
|
# to be treated as positioning requests (in addition to the normal
|
||||||
|
# treatment of calibration requests), activate this option.
|
||||||
|
# The default is false: the first calibration requests' purpose is to
|
||||||
|
# serve the positioning process, not to use it.
|
||||||
|
#position-calibration-requests = false
|
||||||
|
|
||||||
# This option allows to create a new AP when a request is captured by an
|
# This option allows to create a new AP when a request is captured by an
|
||||||
# AP which is not currently in the APs' list (i.e. not declared in the
|
# AP which is not currently in the APs' list (i.e. not declared in the
|
||||||
# APs' configuration file), or when a self-calibration request is sent
|
# APs' configuration file), or when a self-calibration request is sent
|
||||||
|
|
|
@ -132,6 +132,10 @@ const Request& Input::get_next_request() const
|
||||||
if (Configuration::bool_value(
|
if (Configuration::bool_value(
|
||||||
"positioning.generate-reference-points"))
|
"positioning.generate-reference-points"))
|
||||||
Stock::regenerate_reference_points() ;
|
Stock::regenerate_reference_points() ;
|
||||||
|
|
||||||
|
if (! Configuration::bool_value(
|
||||||
|
"positioning.position-calibration-requests"))
|
||||||
|
medium->clear_current_request() ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,6 +204,12 @@ void UserInterface::fill_positioning_options()
|
||||||
" self-calibration. If unactivated, the calibration requests"
|
" self-calibration. If unactivated, the calibration requests"
|
||||||
" are handled as positioning requests (default is unactivated,"
|
" are handled as positioning requests (default is unactivated,"
|
||||||
" for security purposes).")
|
" for security purposes).")
|
||||||
|
("positioning.position-calibration-requests",
|
||||||
|
po::value<bool>()->default_value(false),
|
||||||
|
"When accept-new-calibration-requests is activated, allow the"
|
||||||
|
" calibration requests to be positioned as normal requests."
|
||||||
|
" The default is to add them to the calibration requests' list"
|
||||||
|
" without position them.")
|
||||||
("positioning.accept-new-aps",
|
("positioning.accept-new-aps",
|
||||||
po::value<bool>()->default_value(false),
|
po::value<bool>()->default_value(false),
|
||||||
"When receiving requests, add unknown APs (APs which are not"
|
"When receiving requests, add unknown APs (APs which are not"
|
||||||
|
|
Loading…
Reference in New Issue