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

Provide a way to set Lighthouse base station geometry remotely #427

Closed
krichardsson opened this issue Apr 30, 2019 · 4 comments
Closed

Provide a way to set Lighthouse base station geometry remotely #427

krichardsson opened this issue Apr 30, 2019 · 4 comments
Milestone

Comments

@krichardsson
Copy link
Contributor

Currently the geometry of the Lighthouse base stations is hard coded in the lighthouse deck code. Provide a way to transfer geometry data via radio or USB, for instance from a client.
The implementation should probably use a memory mapping.

@NicksonYap
Copy link
Contributor

@krichardsson Just to confirm, does the Crazyflie Client already support setting base station geometry?
I checked the wiki and it still requires flashing

@ataffanel
Copy link
Member

The functionality has been implemented in the lib but but not in the client yet. Though it is usable when making your python scripts.

There is an example in the lib of how to set the geometry: https://github.com/bitcraze/crazyflie-lib-python/blob/master/examples/lighthouse/write-geometry-mem.py#L65. And you will need to add CFLAGS += -DDISABLE_LIGHTHOUSE_DRIVER=0 in your config.mk in order to enable the lighthouse driver.

@NicksonYap
Copy link
Contributor

Hi @ataffanel ,

The script seems to write successfully, but upon read, it uses the matrices from the lighthouse.c file, not from the python script

I've also enabled the Lighthouse driver, i've set DISABLE_LIGHTHOUSE_DRIVER=0
and console out put seems to show the lighthouse initialized.

Do I need to do some setting in firmware to follow memory's matrices instead of the c file?

@krichardsson
Copy link
Contributor Author

@NicksonYap, the data is not stored permanently, only in RAM. Did you maybe restart the CF between write and read?

cafeciaojoe pushed a commit to cafeciaojoe/crazyflie-firmware that referenced this issue Sep 27, 2024
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