Commit Graph

324 Commits

Author SHA1 Message Date
Matteo Cypriani b39dff9afb [Positioning] Remove csv/ & log/ 2012-02-06 17:48:08 +01:00
Matteo Cypriani 6b7e5668fa Add/update headers on the top of each source file 2012-02-06 16:44:09 +01:00
Matteo Cypriani c137f6491c [Positioning] Update Doxyfile with Doxygen 1.7.6.1 2012-02-06 14:51:07 +01:00
Matteo Cypriani 3ed19bb012 Version printing: "Owl" instead of "Open Wireless" 2012-02-06 13:27:05 +01:00
Matteo Cypriani 2c1697b78a Enable compilation on GNU/kFreeBSD 2012-02-06 13:27:05 +01:00
Matteo Cypriani 16eaecc53f Avoid displaying non-ASCII characters
Avoid displaying UTF-8 characters on the terminal (French quotes &
ellipsis).
2012-02-06 13:26:50 +01:00
Matteo Cypriani 08a8626354 Makefiles: improve static compilation
Add a static target for Listener, Aggregator and Positioning.
Strip the static and semistatic targets.
2012-01-11 16:50:39 +01:00
Matteo Cypriani cf73bf6309 [lib] Avoid struct arguments & return values
Modify the *time*() functions to avoid passing structures in arguments
(using const pointers instead) or returning structures (using result
arguments instead).
2012-01-11 16:50:36 +01:00
Matteo Cypriani 4dc45acff7 Get rid of the SS - 0x100 problems
In the listener & aggregator, the signal strength is stored as an
unsigned byte. To display the actual (negative) value, one must
substract 256 (0x100) to the unsigned value.
This commit changes several things:
 - Use the decimal (256) instead of the hexadecimal value (0x100).
 - Don't substract 256 when copying the value to another unsigned byte
   (aggregator).
 - Be careful with the type length. In the positioning server, a SS
   could be copied to a signed byte, while (theoretically) the negative
   value can exceed the capacity of the signed byte. measurement.hh now
   defines a type ss_t to store a signal strength value with the good
   size (it is currently an int_fast16_t).
2012-01-09 11:11:31 +01:00
Matteo Cypriani 5bef966d14 [Positioning] InputMedium: fix a comment 2012-01-09 11:11:30 +01:00
Matteo Cypriani aa8d11e12b [lib] Rename antenna_signal_dbm -> ss_dbm
Use "ss" instead of "antenna_signal" in the data types declared in
owlps.h. Shorter, and as meaningful.
2012-01-09 11:11:30 +01:00
Matteo Cypriani 3d05f203aa [Positioning] Rename RADAR -> NSS
The algorithm RADAR is renamed "NSS", which is more neutral.
2012-01-09 11:11:30 +01:00
Matteo Cypriani 61124e4cfc Makefiles: test CC prior to surcharge it
Verifies that CC is at its default value prior to try to surcharge it
with colorgcc.
2012-01-09 11:11:30 +01:00
Matteo Cypriani 700782f9a6 [Positioning] Makefile: disable the 'test' target
Unit tests are unmaintained. It's nicer to tell it to the user.
2012-01-09 11:11:30 +01:00
Matteo Cypriani cf18386310 [Positioning] Review CLI options descriptions
Fix some typos and reorganise the command-line options' descriptions.
Rename positioning.radar-* --> positioning.radar.*
Same in the sample configuration file.
2012-01-09 11:11:30 +01:00
Matteo Cypriani 8c070d482e Standardise CLI options
Make uniform the command-line options of the various programs.
Positioning: delete some useless short options.
2012-01-09 11:11:30 +01:00
Matteo Cypriani 39300aaa85 Makefiles: translate help
Translate help messages from French.
2012-01-09 11:11:30 +01:00
Matteo Cypriani fc0ab05620 [Positioning] Fix comments in Stock & Request 2011-12-02 11:44:01 +01:00
Matteo Cypriani 5e0a227905 [Positioning] Only one occurrence of an algorithm
If an algorithm name is specified more than once (e.g. once in the
configuration file and once on the command line), the algorithm is
now executed only once.
2011-11-22 15:14:39 +01:00
Matteo Cypriani 6aae51ab97 [Positioning] InputUDPSocket: verbose mode
In verbose mode, the received requests are now displayed.
2011-10-27 10:03:07 +02:00
Matteo Cypriani 0fcf846988 [Positioning] ReferencePoint: clarify comments 2011-10-21 16:25:54 +02:00
Matteo Cypriani 220289e83f [Positioning] Makefile: display minimal GCC version
The help target displays the minimal GCC version required to compile the
program.
2011-08-30 17:06:32 +02:00
Matteo Cypriani 12624f6fd3 [Positioning] OutputNetworkSocket: missing #include
Add missing #include for BSD.
2011-08-30 17:00:35 +02:00
Matteo Cypriani b57bf543c7 [Positioning] Fix config parsing memory leaks
Do not use exit() from
UserInterface::print_information_and_exit_if_requested(), set owl_run to
false instead. This function is renamed print_information().
2011-08-24 13:39:01 +02:00
Matteo Cypriani a301c87c1d [Positioning] Fix segfault when ignoring AP RP
This commit fixes a segfault that occurred in certain circumstances with
the option positioning.radar-ignore-ap-reference-points activated. The
bug was introduced with this option in 0da98cdb.
2011-08-23 19:58:49 +02:00
Matteo Cypriani 442c5a4601 [lib] .h all is prefixed with OWL_ or owl_
All the types, defines, etc. are now prefixed with "OWL_" or "owl_".
TRUE and FALSE become owl_true and owl_false.
2011-08-22 22:43:35 +02:00
Matteo Cypriani 8327357290 Makefiles: allow to enable -g easily
Add a commented line DEBUG=-g in each Makefile.
2011-08-22 22:43:35 +02:00
Matteo Cypriani c61c4b3a22 [Positioning] UDP & TCPEvAAL: send '\0'
Send the final null character of the CSV string.
2011-08-18 21:36:42 +02:00
Matteo Cypriani 3f328e0e69 [Positioning] CSV format: remove "Error" string
Result::to_csv() do not give a fixed "Error" string field before the
error value field any more.

Update comments to better document the CSV format.
2011-08-18 11:36:50 +02:00
Matteo Cypriani 2c887899b3 [Positioning] Fix FBCM with autocalibration
Regenerate Friis indexes at each call of the algorithm when
autocalibration is used (without this fix, FBCM given always the same
result autocalibration activated, because of the Friis indexes equal to
zero).
2011-08-01 20:41:14 +02:00
Matteo Cypriani 6167f664e8 [Positioning] Use AccessPoint::friis_constant_term()
Use AccessPoint::friis_constant_term() wherever possible.
Fix MultilaterationAlgorithm::make_constant_term() and
ReferencePoint::friis_indexes_for_ap(), where the AP's trx
power was used instead of the mobile's power.
2011-08-01 19:57:40 +02:00
Matteo Cypriani dde917485a [Positioning] Add AccessPoint::friis_constant_term() 2011-08-01 19:53:54 +02:00
Matteo Cypriani d9adbc3f88 [Positioning] Fix InputMedium::fill_calibration_request_data()
The first test was logically wrong.
2011-08-01 18:24:39 +02:00
Matteo Cypriani 90f26261a2 [Positioning] InputMedium::fill_calibration_request_data()
Refactor some code of Input{CSV,UDPSocket}::fill_current_request() into
the new function InputMedium::fill_calibration_request_data().
2011-08-01 18:24:39 +02:00
Matteo Cypriani a71dcfdcfe [Positioning] InputMedium::get_next_request() non-virtual
Refactor some code of Input{CSV,UDPSocket}::get_next_request() into
InputMedium::get_next_request().
The medium-specific code must now be implemented in
fill_current_request().
2011-08-01 12:03:41 +02:00
Matteo Cypriani 2886d87ab6 Merge TODOs
Merge owlps-positioning/TODO into TODO.
2011-08-01 10:00:59 +02:00
Matteo Cypriani e527b791ad [Positioning] TODO: finish translation 2011-08-01 09:57:29 +02:00
Matteo Cypriani bfc09fdbe6 [Positioning] Stock::in_which_area_is(): ref param
Fix a typo in the header of Stock::in_which_area_is() to pass the
argument as a reference.
2011-07-30 20:46:32 +02:00
Matteo Cypriani 141515b5db [Positioning] operator=() return non-const reference
Change the return type of all operator=() from const reference to
non-const reference.
2011-07-30 20:46:32 +02:00
Matteo Cypriani dcf425fce5 [Positioning] Stock::generate_reference_point()
Create the function Stock::generate_reference_point(Point3D) from
regenerate_reference_points().
2011-07-30 20:46:32 +02:00
Matteo Cypriani 4c9a3070ac [Positioning] Stock::delete_non_ap_calibration_requests()
Create the function Stock::delete_non_ap_calibration_requests() from
regenerate_reference_points().
2011-07-30 20:46:32 +02:00
Matteo Cypriani c0a179e34e [Positioning] Result::to_csv(): include area
Add the area in which is the result's coordinate, after the error.
This changes the behaviour of OutputUDP and OutputCSV.
2011-07-30 20:46:32 +02:00
Matteo Cypriani 79ad31b351 [Positioning] .conf: UDP & TCPEvAAL output options 2011-07-30 20:46:32 +02:00
Matteo Cypriani cd25c4ddcd [Positioning] Add class OutputNetworkSocket
Factorise code of OutputUDPSocket and OutputTCPSocketEvAAL.
2011-07-30 20:46:32 +02:00
Matteo Cypriani 21c7f80345 [Positioning] Rename options minmax-* area-*
The options minmax-start and minmax-stop are also used by the
autocalibration process to know in which area reference points must be
generated. Therefore these options are renamed area-start and area-stop.
2011-07-30 19:53:13 +02:00
Matteo Cypriani bf3a6eb661 [Positioning] Rename owlps-positioning.cfg -> .conf
Rename the sample configuration file to have the standard UNIX suffix.
Add a Vim modeline to keep the "Windows .ini" syntax.
2011-07-30 19:53:13 +02:00
Matteo Cypriani 1a5fab9b99 Update TODOs 2011-07-30 19:49:46 +02:00
Matteo Cypriani a9f4750f34 [Positioning] Split option generated-meshing-grain
Split the option positioning.generated-meshing-grain in two:
positioning.generated-meshing-grain-x and
positioning.generated-meshing-grain-y.
2011-07-30 19:49:42 +02:00
Matteo Cypriani 0da98cdb05 [Positioning] Opt. radar-ignore-ap-reference-points
Add the option positioning.radar-ignore-ap-reference-points, to be able
to select only generated reference points.
2011-07-30 19:48:20 +02:00
Matteo Cypriani 089c8e3f8f [Positioning] Result: operator<< displays area
If the result point is in a known area, the area's name is displayed
(this changes the output of OutputTerminal).
2011-07-29 23:02:26 +02:00