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

Python CFFI #92

Open
afrs-us opened this issue Sep 3, 2024 · 2 comments
Open

Python CFFI #92

afrs-us opened this issue Sep 3, 2024 · 2 comments

Comments

@afrs-us
Copy link

afrs-us commented Sep 3, 2024

Attempting to utilize this C library in Python CFFI is an uphill battle w/ respect to slurping in the header due to math included in the header.

Thought about checking code out the source and moving the math into the functions VS allowing it to reside in the header - But before doing that, I wanted to propose a question to the team if anyone has had success using libopendroneid.so w/ Python on *nix OS? If success on Python, did you use ctypes, cffi, or some other module?

In summary:
The math inside the opendroneid.h header file causes Python CFFI to reject the header.
Instructions within the readme for different platforms would be helpful.

I appreciate everyone who contributes to this project.

Thanks

@friissoren
Copy link
Contributor

Personally I have not made any such attempts.

Once you boil it down, there isn't that much code in this repo and none of it requires any major processing power, so maybe it might even be easier to pick the parts that you need and create a completely new pure Python implementation?

Of course, there is then always the risk of introducing new errors/mis-translations.

If you do end up on that path, and wish to share the results, a new repo can easily be created in the opendroneid project for storing that.

@gabrielcox
Copy link
Contributor

gabrielcox commented Sep 4, 2024

Bluemark created an RID MQTT subscriber, and in the process built up a python implementation that may help you get there: https://github.com/BluemarkInnovations/RemoteID-MQTT-subscriber .

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