question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sample not working

See original GitHub issue

I have the same issue as described here - https://github.com/maddevsio/mad-location-manager/issues/2 I cloned the repository, built the apk and started it on the phone, but it doesn’t seem to work ok. See the screenshots of what happens when I press on buttons in the app: 2 1

I open the log file in SendDataCollector folder and there I can see a whole bunch of data, like that:

1527313200064|I|X-LOG|31007242 GPS : pos lat=55,593639, lon=37,478290, alt=217,394154, hdop=8,000000, speed=16,755537, bearing=21,427261, sa=0,800000
1527313200065|I|X-LOG|01007242 KalmanAlloc : lon=37,478290, lat=55,593639, speed=16,755537, course=21,427261, m_accDev=0,100000, posDev=8,000000
1527313202025|I|X-LOG|31009225 GPS : pos lat=55,593906, lon=37,478476, alt=217,249434, hdop=6,000000, speed=16,708115, bearing=21,522673, sa=0,600000
1527313202135|I|X-LOG|21009225 KalmanUpdate : pos lon=37,478476, lat=55,593906, xVel=-14,907940, yVel=7,544164, posErr=6,000000, velErr=0,600000
1527313204035|I|X-LOG|31011234 GPS : pos lat=55,594177, lon=37,478662, alt=216,945878, hdop=6,000000, speed=16,529324, bearing=21,998478, sa=0,600000
1527313204138|I|X-LOG|21011234 KalmanUpdate : pos lon=37,478662, lat=55,594177, xVel=-16,528880, yVel=-0,121148, posErr=6,000000, velErr=0,600000

So, the app actually gets the location data but does not show anything on UI of the app (I thought there will be the track shown on the map). Why doesn’t it show anything?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Lezh1kcommented, May 30, 2018

@al-t Hello. There is some misunderstanding here, my fault. Sorry for that. It’s not possible to use just accelerometer. We need TYPE_ROTATION_VECTOR (it uses magnetometer and accelerometer as I understood from sources) OR we need accelerometer+magnetometer+gyroscope(optional) for Madgwick filter. These two ones are used for getting phone orientation. With phone orientation we can use accelerometer as INS.

If you don’t have these sensors (magnetometer at least) you can use GPS only based solutions, just using realtime geohash filter (class in current solution). It will remove “jumps” from route at least. Also you can use this solution.

1reaction
Lezh1kcommented, May 26, 2018

Hello there 😃 Seem’s like something wrong with sensors : there is no any information about acceleration in logs. So could you check that application has rights to get data from linear accelerometer , magnetometer and gyroscope sensors?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sampling Errors in Statistics: Definition, Types, and Calculation
A sampling error is a statistical error that occurs when an analyst does not select a sample that represents the entire population of...
Read more >
Sampling & Non-Sampling Errors in 2023 - Qualtrics
Non-sampling errors occur when there are problems with the sampling method, or the way the survey is designed or carried out. We'll cover...
Read more >
Sample Preparation & Gel Electrophoresis Troubleshooting
Sample Preparation & Gel Electrophoresis Troubleshooting · No Bands or Gel Front · Sample Doesn't Sink to the Bottom of the Well ·...
Read more >
Function "sample" in R does not work properly - Stack Overflow
From ?sample : If x has length 1, is numeric (in the sense of is.numeric) and x >= 1, sampling via sample takes...
Read more >
FL Studio Samples / Missing Samples / Channels Red Not ...
FL Studio (Windows) ... There are two common causes of this problem... ... Make sure that the sample's location is listed in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found