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

[Question] RCGps frequency #31

Closed
andre-nguyen opened this issue Jun 14, 2016 · 6 comments
Closed

[Question] RCGps frequency #31

andre-nguyen opened this issue Jun 14, 2016 · 6 comments

Comments

@andre-nguyen
Copy link

Hi,

after testing DJIRemoteController.RCGpsDataUpdateCallback I noticed that the update frequency varies a lot, sometimes even with 9 satellites it took a few seconds for the callback to be triggered, at its worst it took 20 seconds between two calls.

Question: What is the criterion for the RCGps callback to be triggered, is it when there is significant motion? I also noticed that speed east and speed north was 0 while I was walking around. Do I need to move faster?

Thanks,

@kenargo
Copy link

kenargo commented Jun 14, 2016

Most of the callbacks are triggered when information changes and not by time. The only callback I am aware of is updateSystemStateCallback (which happens every 100ms).

As for the RCGpsDataUpdateCallback, what aircraft are you testing with? The callback is only used for RC controllers that have GPS modules; I think only the Inspire and likely the Matrice units have them. None of the Phantom model’s RC units have GPS and will return 0.

From: Andre Nguyen [mailto:notifications@github.com]
Sent: Tuesday, June 14, 2016 10:27 AM
To: dji-sdk/Mobile-SDK-Android Mobile-SDK-Android@noreply.github.com
Subject: [dji-sdk/Mobile-SDK-Android] [Question] RCGps frequency (#31)

Hi,

after testing DJIRemoteController.RCGpsDataUpdateCallback I noticed that the update frequency varies a lot, sometimes even with 9 satellites it took a few seconds for the callback to be triggered, at its worst it took 20 seconds between two calls.

Question: What is the criterion for the RCGps callback to be triggered, is it when there is significant motion? I also noticed that speed east and speed north was 0 while I was walking around. Do I need to move faster?

Thanks,


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #31 , or mute the thread https://github.com/notifications/unsubscribe/AM7-OEQKsYy_Lb55Ocd-ArGg7whQR93Iks5qLuRngaJpZM4I1kFV . https://github.com/notifications/beacon/AM7-OBwei1mSC2UbGkR3XnaAG1loIGg4ks5qLuRngaJpZM4I1kFV.gif

@andre-nguyen
Copy link
Author

andre-nguyen commented Jun 14, 2016

I'm testing with the m100. The callback works and I get non-zero data for the data fields other than speed. I'm mostly trying to get a better understanding of what performance I can expect.

@kenargo
Copy link

kenargo commented Jun 14, 2016

I haven’t seen documentation at that level; you will need DJI people to answer that part.

From: Andre Nguyen [mailto:notifications@github.com]
Sent: Tuesday, June 14, 2016 10:45 AM
To: dji-sdk/Mobile-SDK-Android Mobile-SDK-Android@noreply.github.com
Cc: ken argo donotreply@kenargo.com; Comment comment@noreply.github.com
Subject: Re: [dji-sdk/Mobile-SDK-Android] [Question] RCGps frequency (#31)

I'm testing with the m100. The callback works and I get data. I'm mostly trying to get a better understanding of what performance I can expect.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #31 (comment) , or mute the thread https://github.com/notifications/unsubscribe/AM7-OIghyy7dW-7L3p8GbRsjOF8kWUNGks5qLui3gaJpZM4I1kFV . https://github.com/notifications/beacon/AM7-OMKYS7Z5DDBtGbk2o3BkCalp1j9fks5qLui3gaJpZM4I1kFV.gif

@andre-nguyen
Copy link
Author

@SilverChangjian any ideas?

@SilverChangjian
Copy link

Hi thanks for your reporting. For all of the callbacks in the SDK, they will be fired only when the data they listened is changed. We will investigate the speed value as you mentioned. Will provide result when we get the result.

@andre-nguyen
Copy link
Author

Thanks, for the speed being 0 it might just be that I wasn't walking fast enough. Does the RC GPS calculate speed through differentiation or through doppler effect?

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

3 participants