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