Staring commit
Makefile
Spi1 - This class contains all the methods to initialize, read and write the spi bus
Lis302dl - This class contains the methods to sets up the accelerometer and read his data
Utility - This class contains methods to initialize and to use leds
Pedometer - This class contains the logic to understand if a movement is a step or not

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Adding .cpp files in Makefile
pedometer.cpp
lis302dl.cpp
spi1.cpp
utility.cpp
statistics.cpp
main.cpp

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Methods of printing [Utility]
Introduction of the method that prints statistics (test2)
Prettines: x,y,z instead of dx,dy,dz (test1)

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Limit and Range correction [Pedometer]
Adjustment of the range and the limit of the pedometer algorithm
LIMIT 155, R 3

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Set pedometer ad a singleton [Pedometer]
Setting of the class as singleton

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Use of fabs() in the algorithm [Pedometer]
dx,dy,dz global variables
introduction of fabs function

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Creation of threads [Main]
Creation of the thread pedometer and statistics
Setting of the priority
startPedometer and startStatistics creation

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Introduction of the sleep [Pedometer]
50Hz frequency of Pedometer
Removing print

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Creation of the class statistics [Statistics]
Class that calculates statistics based on the number of steps

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Deleting obsolete files [spi1_reg]

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Documentation enrichment
Addition of some of the documentation [lis302dl - main - pedometer - spi1 - statistics - utility]

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Fix comments

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
Fix function
Delete getCal()
Introduction of compareSteps()

Signed-off-by: Omar Scotti <omar.scotti@mail.polimi.it>
Signed-off-by: Diego Rondelli <diego.rondelli@mail.polimi.it>
merge con ssSoftware

Signed-off-by: Stefano Bielli <stefano.bielli@gmail.com>
fix main

Signed-off-by: Stefano Bielli <stefano.bielli@gmail.com>
unisco sorgenti per l'integrazione

Signed-off-by: Luca Borghese <luca-zip@hotmail.it>
modificato il makefile per l'integrazione

Signed-off-by: Luca Borghese <luca-zip@hotmail.it>
avevo dimenticato un file nella lista dei file da compilare

Signed-off-by: Luca Borghese <luca-zip@hotmail.it>
modifica percorso include per la compilazione

Signed-off-by: Luca Borghese <luca-zip@hotmail.it>
aggiunta main di integrazione con pulsante

Signed-off-by: Andrei Palamarciuc <andrei.palamarciuc@mail.polimi.it>