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

Flight Controller Serial Number #71

Closed
a2hill opened this issue Nov 12, 2016 · 11 comments
Closed

Flight Controller Serial Number #71

a2hill opened this issue Nov 12, 2016 · 11 comments

Comments

@a2hill
Copy link

a2hill commented Nov 12, 2016

Not sure if I'm overlooking it, but is there no way to query the serial number from the Flight Controller?

@lanyusea
Copy link
Member

  1. You want to do it by using Onboard SDK?
  2. if 1 is true, do you want a UID to separate different drones or you really want to check the serial number?

@a2hill
Copy link
Author

a2hill commented Nov 13, 2016

  1. Yes I want to use the onboard SDK to do it.
  2. UID would be fine
    On Sat, Nov 12, 2016 at 18:57 Aqua notifications@github.com wrote:
  1. You want to do it by using Onboard SDK?
  2. if 1 is true, do you want a UID to separate different drones or you
    really want to check the serial number?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#71 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACLkDGH8yuavNRc4DVzRCj84SBsqYRw1ks5q9nykgaJpZM4KweGk
.

@lanyusea
Copy link
Member

lanyusea commented Nov 13, 2016

As I remember, there are some bytes describing drone's UID in the ack of (0x00, 0x00): Get Protocal Version. You can printf the ack result to check.
We use it to allow the code separate different drones when swarm.

@a2hill
Copy link
Author

a2hill commented Nov 13, 2016

Ahh got it, thanks
On Sat, Nov 12, 2016 at 19:17 Aqua notifications@github.com wrote:

As I remember, there is some bytes describing drone's UID in the ack of
(0x00, 0x00): Get Protocal Version. You can printf the ack result to check.
We use it to allow the code separate different drones when swarm.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#71 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACLkDJHon_NQpgxjfGatWj_d4onucSElks5q9oFJgaJpZM4KweGk
.

@lanyusea
Copy link
Member

lanyusea commented Nov 16, 2016

@a2hill does it satisfy your requirement? how is everything now?

@a2hill
Copy link
Author

a2hill commented Nov 16, 2016

@lanyusea I've been looking at VersionData returned from getDroneVersion and unfortunately it seems to be empty. Do I need to send a 0x00 0x00 and parse the ACK manually?

@rohitsantdji
Copy link

@a2hill what flight controller and firmware are you using?

@a2hill
Copy link
Author

a2hill commented Nov 16, 2016

@rohitsantdji M100 with firmware 1.1.0.10+

@rohitsantdji
Copy link

We will be releasing a hotfix soon that should take care of this issue. For now, please use the void-return-type getDroneVersion with your own callback as an argument (you can look at getDroneVersionCallback in DJI_API.cpp and implement something very similar, except instead of printing out values using API_LOG you can execute your own logic).

@a2hill
Copy link
Author

a2hill commented Nov 16, 2016

Great thanks this worked as far as getting the data! So can the version ID returned be used as a UID of the aircraft?

@rohitsantdji
Copy link

Great! yes, it can.

@a2hill a2hill closed this as completed Nov 16, 2016
pcler pushed a commit that referenced this issue May 7, 2020
…nsing to develop

* commit '05cb9c04263ae0d8c37bf53b917d4bb4606647d9':
  fix:fix compile issue
  fix:adapting advanced-sensing
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