mad-location-manager
mad-location-manager copied to clipboard
Sensor/GPS Logger for Android
As base you can take this one: https://github.com/Lezh1k/TraceVisualizer .
We need to collect logs from sensors:
- Accelerometer (>= 100 Hz) (raw and linear)
- Gyroscope (>= 100 Hz)
- Magnetometer (>= 100 Hz)
- Barometer (if possible)
- GPS coordinates
- GPS speed (if possible).
All of them should be logged in some file, one line for one record. VERY IMPORTANT: we need timestamp for all these events. Don't take timestamp from sensor event, because they are somehow differ . Use some global time controller and get current time from that one for every event. It would be great to have some UI, where we can turn on/off type of sensor. For example, collect only magnetomener/accelerometer data.
This will help us with testing.
Preferred format: "%d %d ..." -> All record should start with 2 long integers: type of data and timestamp.
- Accelerometer - "%d %d ACC: x=%f y=%f z=%f\n"
- Gyroscope - "%d %d GYR: x=%f y=%f z=%f\n"
- Magnetometer - "%d %d MAG: x=%f y=%f z=%f\n"
- Barometer - "%d %d BAR: z=%f\n" //I have no idea what's data exactly, so let's assume, that it will return altitude value.
- GPS coordinates - "%d %d GPSC: lat=%f lon=%f alt=%f\n"
- GPS speed - "%d %d GPSS: speed=%f north_angle=%f\n"