Probllem solved
added average sensor data calculation
added triggering for gyro and linear sensor
small layout changes
updated documentation
added kalman filter and several helper functions
commented old code which is not used anymore
disabled all unused functions and streams.
changed gyroRes output from count to time
added gyroFilteredOut
small changes
added code to wake up android and bring my activity into foreground
(first step towards alarm clock)
added a layout for tab testing
added TimePicker for alarm clock time
added start parameter for service to get alarm clock time
added output for wakeuptime
small changes
changed some initial values
added widgets to test.xml
changed name to SleepCalc
added comments to MainActivity
added most UI elements and a button to save the settings
saving and loading of settings now works
added parameters for startService so sensorService gets all the settings