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

LH2 geometry #16

Merged
merged 8 commits into from
May 2, 2022
Merged

LH2 geometry #16

merged 8 commits into from
May 2, 2022

Conversation

PhileasL
Copy link
Member

@PhileasL PhileasL commented May 2, 2022

Purpose of this PR

The goal of this PR is to build a mathematical model to interpret FPGA data to an azimuth and elevation w.r.t. the lighthouse.
The full description of the mathematical model isn't about to be written here. I'll dedicate a whole paper on it as it's pure mathematics and not really informatics.

The mathematical model roughly explained without equations

Remember, the FPGA is returning iterations of LFSR. The frequency of the LFSR is 12MHz and the frequency of the rotor of the lighthouse (from which laser planes are emitted) is somewhere around 50Hz (depending on the mode of the lighthouse).

In addition with theses data, we know that laser planes are tilted with an angle of ~30° from the axis of rotation of the rotor. The start angle of the rotor is the angle representing iteration 0 of the LFSR and the phase of the system is the angle between the 2 lenses of the rotor (lenses that diffract the laser into planes).

With those data, the intersections of the 2 planes can be mathematically computed. The intersection is a line with a certain azimuth and a certain longitude in the lighthouse frame.

With several azimuth and elevation from the same laser sweep, a pose can be computed.

@PhileasL PhileasL added documentation Improvements or additions to documentation enhancement New feature or request labels May 2, 2022
@PhileasL PhileasL self-assigned this May 2, 2022
Copy link
Member Author

@PhileasL PhileasL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No real need of changing anything as it's a test and not the final mathematical model at its finest version.

@PhileasL PhileasL merged commit 1578b68 into master May 2, 2022
@PhileasL PhileasL deleted the PhileasL/LH_geometry branch May 2, 2022 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant