maddevsio / mad-location-manager

Mad Location Manager is a library for GPS and Accelerometer data "fusion" with Kalman filter
MIT License
538 stars 155 forks source link

Sensor/GPS Logger for Android #67

Open Lezh1k opened 4 years ago

Lezh1k commented 4 years ago

As base you can take this one: https://github.com/Lezh1k/TraceVisualizer .

We need to collect logs from sensors:

  1. Accelerometer (>= 100 Hz) (raw and linear)
  2. Gyroscope (>= 100 Hz)
  3. Magnetometer (>= 100 Hz)
  4. Barometer (if possible)
  5. GPS coordinates
  6. 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.

Lezh1k commented 4 years ago

Preferred format: "%d %d ..." -> All record should start with 2 long integers: type of data and timestamp.

  1. Accelerometer - "%d %d ACC: x=%f y=%f z=%f\n"
  2. Gyroscope - "%d %d GYR: x=%f y=%f z=%f\n"
  3. Magnetometer - "%d %d MAG: x=%f y=%f z=%f\n"
  4. 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.
  5. GPS coordinates - "%d %d GPSC: lat=%f lon=%f alt=%f\n"
  6. GPS speed - "%d %d GPSS: speed=%f north_angle=%f\n"