Commit Graph

1127 Commits

Author SHA1 Message Date
Matteo Cypriani 93a184f083 CMake: test compiler version for Positioner 2013-05-22 18:36:20 -04:00
Matteo Cypriani d4ef0cc306 CMake: add Positioner's extra targets
Add extra targets for the Positioner:
- indent_positioner calls astyle (old make target: "style")
- check_positioner calls cppcheck (old make target: "check")
2013-05-22 18:36:20 -04:00
Matteo Cypriani 0de28cb3eb CMake: compile Positioner 2013-05-22 18:36:20 -04:00
Matteo Cypriani 688580c7d2 CMake: don't compile semistatic by default
Exclude semistatic targets from the 'all' target.
2013-05-22 18:36:20 -04:00
Matteo Cypriani aa88bcf0fd CMake: configurations & compilation flags 2013-05-22 18:36:20 -04:00
Matteo Cypriani 77fcc23026 CMake: handle OwlPS' version 2013-05-22 18:36:20 -04:00
Matteo Cypriani 7598bc9451 CMake: handle DEBUG and NDEBUG options 2013-05-22 18:36:20 -04:00
Matteo Cypriani dad2e543d1 CMake: handle Listener's options 2013-05-22 18:36:20 -04:00
Matteo Cypriani 93adfdc55c CMake: handle Client's options 2013-05-21 14:23:36 -04:00
Matteo Cypriani 4467fcd52c Initial CMake setup 2013-05-21 14:23:36 -04:00
Matteo Cypriani 005e5da12e Delete Makefiles 2013-05-20 17:08:33 -04:00
Matteo Cypriani 453be9a588 [Positioner] request.cc: add missing #include 2013-05-20 17:07:57 -04:00
Matteo Cypriani e749542ddc [Positioner] PosUtil: improve assert_uppercase() 2013-05-18 23:38:31 -04:00
Matteo Cypriani b1fc4a0aa2 [Listener] Always declare print_configuration()
In owlps-listener.h, print_configuration() was declared only in debug
mode, which was wrong.
2013-05-18 23:38:31 -04:00
Matteo Cypriani 8780c64e5e Makefiles: improve detection of compilers 2013-05-18 12:53:05 -04:00
Matteo Cypriani 6745274c94 [Positioner] Configuration::autocalibration_enabled()
Add Configuration::autocalibration_enabled() as a shortcut to test if
the autocalibration is enabled.
2013-05-17 16:54:57 -04:00
Matteo Cypriani 4650c229ff [Positioner] Allow to generate a RP list
Change the positioning.generate-reference-points option to offer
multiple choices (false, mesh, list, both) and add the
positioning.generated-points-list to allow the user to specify a list of
reference points to generate.
2013-05-17 16:54:57 -04:00
Matteo Cypriani 9ef599b42f [Positioner] Add CSVStringReader(string)
Add a string constructor for CSVStringReader, for easier use outside of
CSVFileReader.
2013-05-17 16:54:57 -04:00
Matteo Cypriani 2e323be423 [Positioner] CSVStringReader: allow "(X;Y;Z)"
CSVStringReader::read_point3D() now allow the first of the three fields
forming a Point3D (that is, X) to start with an opening parenthesis, and
the last (Z) to end with a closing parenthesis. That allows an improved
clarity for strings containing several points, e.g. "(1;2;3);(4;5;6)".
2013-05-17 16:54:57 -04:00
Matteo Cypriani 9944fef40d [Positioner] Switch to C++11
This is a very basic switch, we don't use any of the C++11 features yet.
2013-05-16 17:46:44 -04:00
Matteo Cypriani f55672ef01 [Positioner] Add class CSVStringReader
Code separated from CSVFileReader, which now inherits from both
TextFileReader and CSVStringReader.
2013-05-16 16:59:15 -04:00
Matteo Cypriani 559c884499 [Listener] Add display_captured_request()
Create the display_captured_request() function from read_packet() code.
2013-05-16 14:15:25 -04:00
Matteo Cypriani 75b6539757 [Listener] Warn if rtap SS field is absent
Display a warning if the radiotap antenna signal is absent and the
signal strength could not be extracted. Change the SS value to 127 dBm
(the maximum and improbable value) in this case.
2013-05-16 14:15:25 -04:00
Matteo Cypriani b3f688b2cf [Listener] Improve radiotap parsing
Get rid of the useless parsing loop; make clear we only want to extract
the signal strength and work only for that.
2013-05-16 13:52:57 -04:00
Matteo Cypriani 7a5ed8ec51 [Listener] Remove unused radiotap fields
From the radiotap header, we only use the antenna signal field,
therefore we don't need to handle the fields that are after it. We do
need to take into account the fields preceding the antenna signal field
though, in order to know where it is.
2013-05-16 11:37:18 -04:00
Matteo Cypriani 4a3e1e1091 [Listener] Improve/fix radiotap fields definitions 2013-05-16 11:09:45 -04:00
Matteo Cypriani 0614b52219 [lib] Stop defining owl_bool (use stdbool.h)
We don't define our own boolean type in owlps.h any more: bool (from
stdbool.h) is used instead.
2013-05-15 15:46:13 -04:00
Matteo Cypriani 94a567ca4b Update COPYRIGHT.t2t (new year) 2013-05-14 13:40:24 -04:00
Matteo Cypriani aa2e72f423 [Positioner] positioner.conf: comment lines
Comment unnecessary lines from cfg/owlps-positioner.conf.
2013-05-14 13:37:18 -04:00
Matteo Cypriani 5a7d30ea84 [Positioner] InputUDPSocket: include unistd.h
Fixes compilation on DragonFly.
2013-05-01 13:41:05 -04:00
Matteo Cypriani 9d18c1b598 Makefile: adapt targets to the OS
The Listener is built only on Linux, the Positioner is not built on
OpenBSD. Some other changes might be required.

In common.mk, the OS is forced to Linux if we build for OpenWrt, which
should allow to cross-compile from BSD systems.
2013-05-01 11:13:49 -04:00
Matteo Cypriani 64c2ac9a58 Makefiles: move OS detection in common.mk
This fixes compilation on BSD.
2013-04-30 16:50:14 -04:00
Matteo Cypriani 2e4fb5a931 [Listener] Remove errbuf comment (cf. prev. commit)
errbuf doesn't seem to begin with ": " in all cases; I fixed that in
the previous commit but forgot to remove the wrong comment.
2013-04-29 11:50:40 -04:00
Matteo Cypriani 2b6a3a73ed [Listener] Fix compilation with confuse (-r/-R)
The handling of -r/-R was buggy with libconfuse enabled.
2013-04-29 10:51:04 -04:00
Matteo Cypriani 1971e2def6 [doc] owlps: add section Contribute 2013-04-24 14:13:06 -04:00
Matteo Cypriani 2a23e31a28 Fix compilation warning/errors for OpenWrt
In lib-resultreader and Positioner.
2013-04-24 13:51:58 -04:00
Matteo Cypriani f9fffd4a9e Improve compilation process for OpenWrt
- common.mk has been tweaked so that the OpenWrt compilation process is
  more flexible: one can now choose an OPENWRT_TARGET and the
  OPENWRT_ROOT instead of just the OPENWRT_VERSION.
- The OPENWRT_VERSION's default value trunk" has been removed.
- Makefile_atheros_openwrt has been deleted, since with recent OpenWrt
  versions (12.09) everything should compile just fine, and we are not
  specific to the atheros target any more.
- INSTALL.t2t has been updated to reflect these changes, and a new
  section was added to explain how to compile your own toolchain.
2013-04-24 13:51:58 -04:00
Matteo Cypriani 4aed9c1ef0 Radiotap Antenna Signal field is signed
Using int8_t instead of uint8_t which was erroneously used to code the
Antenna Signal radiotap field.
2013-04-24 10:59:55 -04:00
Matteo Cypriani a046dcd3fb [Listener] Fix radiotap alignment bug
The fields in the radiotap header are naturally aligned, which was not
taken into account by the parser.
2013-04-23 18:54:38 -04:00
Matteo Cypriani 6f0d5c8da5 [Listener] Warn in case of unknown rtap field 2013-04-23 18:54:38 -04:00
Matteo Cypriani e7b639a020 [Listener] Minor fixes, mostly cosmetic 2013-04-23 18:54:38 -04:00
Matteo Cypriani 6ea849625c [Listener] Add -R option (read from pcap file)
The new -R option allows one to read packets from a pcap file instead of
capturing from a network interface.
2013-04-23 18:32:59 -04:00
Matteo Cypriani c95257f26a [Listener] Use pcap_next_ex instead of pcap_loop
pcap_next_ex() will allow us to detect the end of a capture file. Since
we used pcap_loop() to capture one packet at a time anyway, this won't
change anything for live captures.

The variable names were standardised in functions using pcap data types
('pkt_header' and 'pkt_data' instead of 'header' and 'packet').
2013-04-23 18:32:37 -04:00
Matteo Cypriani 0fc84a548f [doc] Add -client (unfinished) 2013-03-20 13:20:56 -04:00
Matteo Cypriani 3780d3ff6d [doc] Add -architecture 2013-01-11 16:47:17 -05:00
Matteo Cypriani 375ddb513b Update TODO 2013-01-11 16:22:20 -05:00
Matteo Cypriani d423339374 Update gitignore 2013-01-11 16:22:08 -05:00
Matteo Cypriani a3b76dd9ec [doc] Fix preproc-man & owlps.t2t 2013-01-11 16:21:38 -05:00
Matteo Cypriani 867ee1cd80 Add doc/
Add the directory for all the future documentation. The file owlps.t2t
is aimed at being the entry point of all the other documentation pages.
Included are a Makefile to generate man pages and a couple of scripts to
improve the rendering.
2012-11-08 21:45:56 +01:00
Matteo Cypriani 2898141f3b Add README.t2t 2012-11-08 19:16:35 +01:00