Matteo Cypriani
d31ac3864e
Position endianess conversion in all modules
2011-04-07 16:15:46 +02:00
Matteo Cypriani
e8332fd0f6
Update TODOs
2011-04-07 11:57:14 +02:00
Matteo Cypriani
55886734d5
[Positioning] Makefile: call prepare before *.o
...
When compiling in parallel (make -j), the directory 'obj' was sometimes
created too late (i.e. after the end of the first compilation, so the .o
could not be written on the disk). This is now fixed.
2011-04-07 09:17:46 +02:00
Matteo Cypriani
43ca7a3426
[Positioning] Makefile: run cppcheck with --quiet
2011-04-07 09:17:46 +02:00
Matteo Cypriani
80c914647f
[Positioning] CSVFileReader::print_error_cast() const
2011-04-07 09:17:46 +02:00
Matteo Cypriani
878ee7e495
[Positioning] Fix/add some Doxygen comments
2011-04-07 09:17:46 +02:00
Matteo Cypriani
2467c3261e
[Positioning] TextFileReader: '-' for stdin
...
The user can now use '-' as file name to read inputs from stdin.
2011-04-07 09:17:23 +02:00
Matteo Cypriani
d25aa4276b
[Positioning] TextFileWriter: '-' for stdout
...
The user can now use '-' as file name to write results or logs to
stdout.
2011-04-07 09:16:25 +02:00
Matteo Cypriani
dc9e5a72f4
[Positioning] UserInterface: fix output.udp-host
2011-04-05 16:00:52 +02:00
Matteo Cypriani
3719f58b65
[Positioning] OutputUDPSocket: finish cleaning
...
Use libowlps for socket creation.
Use Result::to_csv() and ResultList::to_csv().
2011-04-05 16:00:52 +02:00
Matteo Cypriani
2324c8e5d1
[Positioning] Move OutputCSV::*to_csv()
...
OutputCSV::result_to_csv() becomes Result::to_csv().
OutputCSV::results_to_csv() becomes ResultList::to_csv().
2011-04-05 15:42:57 +02:00
Matteo Cypriani
40fb159a91
Merge branch 'dev-outputsocket' into dev
...
Adds OutputUDPSocket.
OutputUDPSocket::write(ResultList) is a mock function, since important
changes have to be done before that.
Conflicts:
owlps-positioning/src/userinterface.cc
2011-04-05 12:05:46 +02:00
Matteo Cypriani
a898af4389
[Positioning] Write all results simultaneously
...
Write results computed by several algorithms for the same request
simultaneously for a given medium. This allows to have only one CSV line
for a given request.
To achieve that, the class ResultList was created.
2011-04-05 11:52:10 +02:00
Matteo Cypriani
562ea6c28b
[Positioning] Add options output.udp-{host,port}
2011-04-05 11:27:44 +02:00
Matteo Cypriani
22cad4c214
[Positioning] OutputSocket -> OutputUDPSocket
2011-04-05 11:27:44 +02:00
Matteo Cypriani
a2c0556ee8
[Positioning] OutputSocket: review & clean
2011-04-05 11:27:44 +02:00
Florian Taillard
756b850375
[Positioning] Modified output socket UDP
...
The ip of destination is now configured in cfg/owlps-positioning.cfg
and activate by argument -O Socket.
Update owlps-positioning.cfg (Add remote-ip).
2011-04-05 11:27:44 +02:00
Matteo Cypriani
4752198ce7
[Positioning] Include algorithm name in results
2011-03-31 19:42:35 +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
5972e245cc
[Positioning] InputUDPSocket: read calibration data
2011-03-31 16:03:22 +02:00
Matteo Cypriani
5945617994
Update TODOs
2011-03-31 16:03:22 +02:00
Matteo Cypriani
df5ed19834
Include headers as needed
...
Move #includes from .h to .c wherever possible.
2011-03-31 16:03:22 +02:00
Matteo Cypriani
d64b4046da
[Positioning] Handle signals
2011-03-31 16:03:22 +02:00
Matteo Cypriani
46a67d2843
[Positioning] Add option flush-output-files
2011-03-31 16:03:22 +02:00
Matteo Cypriani
60a10cb112
[Positioning] Configuration: add bool_value()
2011-03-31 16:03:22 +02:00
Matteo Cypriani
f388e6c8ec
[Positioning] Update owlps-positioning.cfg
...
The new configuration file is more generic and better shows options.
2011-03-31 16:03:22 +02:00
Matteo Cypriani
70ff9ffb42
[Positioning] Delete old option server.port
...
This option was replaced by input.udp-port.
2011-03-31 16:03:22 +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
1dad77b26f
[Positioning] CSVFileReader: reindent
2011-03-28 17:52:25 +02:00
Matteo Cypriani
75fc40f057
[Positioning] Fix CSV Input
...
Bug introduced with InputUDPSocket.
2011-03-28 17:51:06 +02:00
Florian Taillard
6fbb0874e7
[Positioning] Add OutputSocket
2011-03-25 12:19:52 +01:00
Matteo Cypriani
4720399513
[lib] mac_bytes_to_string(): do not malloc anymore
...
owl_mac_bytes_to_string() now uses a static buffer, so the caller do not
need to free the returned buffer manually. Because of this static
buffer, it is not thread-safe anymore, therefore we introduce
owl_mac_bytes_to_string_r() that is a thread-safe version.
2011-03-25 11:48:25 +01:00
Matteo Cypriani
161157dae7
[Positioning] Add InputUDPSocket
...
The positioning server can now read the requests sent by the aggregator
via UDP. This data exchange does not concern (auto)calibration requests
yet.
2011-03-25 11:48:25 +01:00
Matteo Cypriani
c3c319a7f1
[Positioning] Timestamp::Timestamp(owl_timestamp)
2011-03-25 11:48:24 +01: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
5669540d8b
[Positioning] Warn about the non-maintained tests
2011-03-18 15:24:37 +01:00
Matteo Cypriani
38769efbf0
[Positioning] Read new timestamp format from CSV
2011-03-18 15:24:37 +01:00
Matteo Cypriani
cbd2ba3ca1
[Positioning] Timestamp: enable ns precision
...
Do not round to millisecond precision anymore, we now keep nanosecond
precision.
2011-03-18 15:24:37 +01:00
Matteo Cypriani
c4f413b862
[Positioning] Fix compilation (-lstdc++)
2011-03-16 16:45:38 +01:00
Matteo Cypriani
0676462082
Makefiles: use colorgcc (only) if it exists
...
owlps-positioning/Makefile used to use colorgcc as the default compiler,
without testing its existence. This is fixed.
The makefiles for libowlps and infrastructure-centred modules now use
colorgcc when available.
2011-03-16 16:44:32 +01:00
Matteo Cypriani
3027df22a7
[Positioning] Makefile: add help
2011-03-16 16:44:32 +01:00
Matteo Cypriani
1fb6e39d27
[Positioning] Handle AP reading from a CSV file
...
Add class AccessPointsReaderCSV and make InputDataReader to use it.
Stock: Add function find_create_ap(const AccessPoint&).
2011-03-16 14:36:24 +01:00
Matteo Cypriani
29ce5a51af
[Positioning] Stock: reorganise with Doxygen groups
2011-03-16 14:36:24 +01:00
Matteo Cypriani
6f0c0af5be
[Positioning] PosUtil::wifi_channel_to_hz(): throw exception
...
posexcept: Add exception bad_channel.
PosUtil::wifi_channel_to_hz() now throw bad_channel if the argument is
not a valid channel nor a 802.11 frequency value in Hz.
2011-03-16 14:36:24 +01:00
Matteo Cypriani
338e4f7dcd
[Positioning] Code cleaning around CSV data reading
...
CSVFileReader: Add function read_point3d().
Point3D: Add function set_coordinates(float[3]).
posexcept: Rename malformed_topology -> malformed_input_data.
TopologyReaderCSV:
- Use CSVFileReader::read_point3d() instead of the custom read_point().
- Rename occurrences of malformed_topology.
2011-03-16 14:36:24 +01:00
Matteo Cypriani
2347657d08
[Positioning] Clean config files
...
Delete access_points.cfg and accesspoints.cfg.
Delete owlps-positioning.conf, add owlps-positioning.cfg.
minips.cfg becomes minipc.csv.
2011-03-16 14:36:24 +01:00
Matteo Cypriani
f3f59ff203
[Positioning] TextFileWriter: fix text writing
...
We wrote a C string instead of a string into the file stream, which
caused valgrind errors.
2011-03-16 14:36:24 +01:00
Matteo Cypriani
cf42098cbd
[Positioning] Correct some coding style issues
...
Get rid of some cppcheck warnings.
2011-03-16 14:36:24 +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
1e605ae16d
[Positioning] Stock: add some comments
2011-03-16 14:36:24 +01:00