owlps/owlps-aggregator
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
..
Makefile [Aggregator] Fix Makefile (don't link with .h) 2012-01-09 11:11:30 +01:00
owlps-aggregator.h [lib] Rename antenna_signal_dbm -> ss_dbm 2012-01-09 11:11:30 +01:00
owlps-aggregatord.c Get rid of the SS - 0x100 problems 2012-01-09 11:11:31 +01:00