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

Add TS4231 data source that automatically calculates 3D positions #166

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

jonnew
Copy link
Member

@jonnew jonnew commented Jul 26, 2024

Addresses #152

jonnew added 2 commits July 25, 2024 15:31
- Qualify all TS4231* nodes with V1 because they data handle is produced
by V1 basesations.
-  We have V2 basestation variants of the FPGA core, but these classes
will not work with that data.
- Addresses #152
- Addresses feedback in #154
- Testedl
- Provides two possitvle data sources for TS4231 lighthouse sensor
arrays.
- TS4231V1Data provides low-level sensor index, pulse type, and pulse
widths in microseconds that can be potentially combined with IMU data in
a predictive filter to improve 3D tracking
- TS4231GeometricPositionData provides naive geometric calculation of 3D
positions.
@jonnew jonnew requested a review from glopesdev July 26, 2024 15:36
@jonnew jonnew changed the title Issue 152 attempt2 Add TS4231 data source that automatically calculates 3D positions Jul 26, 2024
@jonnew jonnew added this to the 0.1.0 milestone Jul 26, 2024
Copy link
Collaborator

@glopesdev glopesdev left a comment

Choose a reason for hiding this comment

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

Looks good, just a few typos. No need to address the other comments now.

OpenEphys.Onix/OpenEphys.Onix/TS4231V1Data.cs Outdated Show resolved Hide resolved
OpenEphys.Onix/OpenEphys.Onix/TS4231V1DataFrame.cs Outdated Show resolved Hide resolved

var t11 = time[2] + width[2] / 2 - time[0];
var t21 = time[5] + width[5] / 2 - time[3];
var theta0 = 2 * Math.PI * SweepFrequencyHz * t11 - Math.PI / 2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a thought here: It could be useful to output these angles in the data frame, as they could be potentially used in other tracking algorithms for fusion and would spare the complication of calculating them.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think there is a lot of low level access one would potentially want and this is just one of those items.

I like the solution now because the other data class provides as low level as you would ever want and this one provides the opposite. I dont think we should mix the two personally.

- Fix typos
- Add infinity check following matrix inversion
@jonnew jonnew merged commit ac28b93 into main Jul 26, 2024
@jonnew jonnew deleted the issue-152-attempt2 branch July 26, 2024 17:00
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

Successfully merging this pull request may close these issues.

2 participants