Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor/GPS Logger for Android #67

Open
Lezh1k opened this issue Apr 27, 2020 · 1 comment
Open

Sensor/GPS Logger for Android #67

Lezh1k opened this issue Apr 27, 2020 · 1 comment
Assignees

Comments

@Lezh1k
Copy link
Collaborator

Lezh1k commented Apr 27, 2020

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
Copy link
Collaborator Author

Lezh1k commented Apr 27, 2020

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants