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
9c76d87b0c
[Positioning] Add option accept-new-mobiles
...
The option positioning.accept-new-mobiles allows the program to add
on-line mobiles that are not declared in the mobiles' configuration
file. This was the default till now; now this option is unactivated by
default to avoid unexpected Wi-Fi devices retransmitting positioning
requests.
2011-07-25 14:18:17 +02:00
Matteo Cypriani
0df91eaa94
[Positioning] Input*: skip requests without measurements
2011-07-25 14:18:16 +02:00
Matteo Cypriani
1f46075aa3
[Positioning] Add option accept-new-aps
...
The option positioning.accept-new-aps allows the program to add on-line
APs that are not declared in the APs' configuration file.
2011-07-25 14:18:16 +02:00
Matteo Cypriani
37997242c5
[Positioning] Uppercase all MAC addresses on input
2011-07-25 14:18:16 +02:00
Matteo Cypriani
3b8121643b
[Positioning] InputCSV: --verbose instead of #ifdef
...
Test if the verbose mode is activated instead of using #ifdef DEBUG.
2011-06-16 14:21:12 +02:00
Matteo Cypriani
332881b305
[Positioning] Standardise InputCSV & InputUDPSocket
2011-06-16 13:13:13 +02:00
Matteo Cypriani
17e12a9735
[Positioning] Input*: initialise real_position
...
When provided for non-calibration requests, the real position is
initialised.
2011-05-05 13:22:33 +02:00
Matteo Cypriani
ea8da6d8ec
[Positioning] Fix InputMedium::…_to_calibration_request()
...
Fix InputMedium::current_request_to_calibration_request(), that was
resulting in a blank request.
2011-04-26 17:18:53 +02:00
Matteo Cypriani
c9d26033e9
[Positioning] InputCSV: add debug info
2011-04-26 17:18:53 +02:00
Florian Taillard
08a407e0f3
[Positioning] Fix reading csv calibration file
...
Add uint16_t into inputcsv to fix read type packet.
The uint8_t is detected as a char.
2011-04-18 16:31:10 +02:00
Matteo Cypriani
670dfdc867
[Positioning] Improve CalibrationRequest::type
...
Add the request type in CalibrationRequest constructors.
Handle (auto)calibration request type in Input*.
2011-03-31 17:08:24 +02:00
Matteo Cypriani
1a5117d46b
[Positioning] Minimal handling of request type
...
Handle the new CSV & UDP formats that include the request type.
2011-03-31 16:03:22 +02:00
Matteo Cypriani
3c29379821
[Positioning] InputCSV: use read_point3d()
...
Use CSVFileReader::read_point3d() to read the coordinates, instead of
reading 3 floats.
2011-03-18 15:27:24 +01:00
Matteo Cypriani
38769efbf0
[Positioning] Read new timestamp format from CSV
2011-03-18 15:24:37 +01:00
Matteo Cypriani
b21b7bd25f
[Positioning] Correct some Doxygen comments
...
Turn REFERENCES_RELATION to YES in Doxyfile.
2011-03-16 14:36:24 +01:00
Matteo Cypriani
d7973a3ef0
[Positioning] InputCSV: Fix CalibrationRequest handling
...
We now consider a Request as a CalibrationRequest if the Direction field
is valid. We do not take care of the position fields any more.
2011-03-16 14:36:23 +01:00
Matteo Cypriani
8e6883cfc9
[Positioning] Add class CSVFileReader
...
CSVFileReader is a specialisation of TextFileReader, that allow reading
a CSV line field by field.
TextFileReader:
- Make private attributes protected to allow derivation.
- Add attribute current_line_nb.
- Add function read_nonblank_line().
- Delete useless accessor get_name().
Update InputCSV to use CSVFileReader.
Adapt unit tests for InputCSV and InputLogCSV: EOF is not reached right
after reading the last line, but after trying (and failing) to read one
more line.
2011-03-16 14:36:22 +01:00
Matteo Cypriani
c82b95f8f0
[Positioning] Stock::find_create_{ap,mobile}()
...
Add function find_create_ap() and find_create_mobile() in Stock.
Use these functions in InputCSV instead of Stock::get_mobile() and try…
catch blocks.
2011-03-16 14:36:22 +01:00
Matteo Cypriani
58ed434d6b
[Positioning] Add class TextFileReader
...
TextFileReader read lines from a text file. It is aimed to be used by
all classes that read from a text file, as TextFileWriter is used by
those which write to a text file.
Code of TextFileReader is taken from class InputCSV.
Minor fixes on the TextFileWriter unit test.
2011-03-16 14:36:22 +01:00
Matteo Cypriani
454579d9b7
[Positioning] InputCSV: fix null direction
2011-03-16 14:36:21 +01:00
Matteo Cypriani
8bb0036512
[Positioning] Request: timestamp -> time_sent
2011-03-16 14:36:21 +01:00
Matteo Cypriani
175719db6d
[Positioning] PosUtil: channel defs -> posutil.cc
...
Move channels defines into posutil.cc.
Remove some useless includes in PosUtil and InputCSV.
2011-03-16 14:36:21 +01:00
Matteo Cypriani
c559b827ee
[Positioning] Directory reorganization
...
Move "new" source files in src/.
Update Doxyfile and Makefile.
Delete old useless files:
- libowlps-positioning.*
- positioning.*
- server.*
- treatment.*
2011-03-16 14:36:21 +01:00