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

Implement Field II Pro C hooks #51

Merged
merged 61 commits into from
Jan 7, 2019
Merged

Implement Field II Pro C hooks #51

merged 61 commits into from
Jan 7, 2019

Conversation

mlp6
Copy link
Owner

@mlp6 mlp6 commented Mar 29, 2018

No description provided.

@mlp6 mlp6 self-assigned this Mar 29, 2018
Copy link
Owner Author

@mlp6 mlp6 left a comment

Choose a reason for hiding this comment

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

Will review in more detail to see what is going on with the transducer definition and xdc_get().


/* foo = (double *)malloc(26*1344*sizeof(double)); */

xdc_get(Th, info, foo);
Copy link
Owner Author

Choose a reason for hiding this comment

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

@ndanieley says something here isn't working as expected (or we don't know what it expected)

Copy link
Owner Author

Choose a reason for hiding this comment

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

LGTM!

@mlp6 mlp6 added the Bug label Mar 29, 2018
@mlp6 mlp6 added this to the convert field2dyna to C milestone Mar 29, 2018
in fieldC, you'll get an a.out that can be used for testing.

for (i = 0; i < numNodes; i++)
if (pointsAndNodes[i].x == 0 && pointsAndNodes[i].y == 0) {
found = 1;
Copy link
Owner Author

Choose a reason for hiding this comment

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

We should try to add some unit tests to validate the function of all of these things... especially since the majority of students in the lab are not as familiar w/ C-syntax, things can become much more susceptible to innocent bug introduction w/ syntax issues.

Copy link
Contributor

Choose a reason for hiding this comment

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

are you suggesting that someone might modify my code? hmmmph.

maybe I'll work on some tests while I'm waiting to understand xdc_get; I'll see what I can come up with.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Nope - additional code that runs yours to test it against some known outcomes... but then in the future when folks may dabble with changing the code, they have some reference tests that should still pass.

@mlp6
Copy link
Owner Author

mlp6 commented May 3, 2018

@ndanieley @davidbradway we should do an in-person code review of all of this once it is ready I can / will try to replicate functionality on my own this weekend after I get all of my grading done.

@mlp6 mlp6 removed the Bug label May 3, 2018
@davidbradway
Copy link
Collaborator

davidbradway commented May 3, 2018 via email

@mlp6 mlp6 mentioned this pull request Jul 11, 2018
ndanieley and others added 19 commits July 11, 2018 12:32
* fixes issue with compiling Field II Pro code on LinuxMint systems
(that are Ubuntu derivatives) [fixes #62]

* rm platform-specific object files that conflict on different systems
'verbose'. also added ability to set verbose option in main.
the probe file to be under the transducer type. that does cause some
duplication of code, but I think it's the clearest way.
been calling xdc_focused_array. that's fixed now.
…l in

readExpData(), so after this commit, I'm going to separate the formatting
code (which produces the impulse response) from the code that just reads
the data.

I also fixed a problem in argument processing in main.c
@mlp6 mlp6 changed the title [wip] Field c Implement Field II Pro C hooks Jan 7, 2019
@mlp6 mlp6 merged commit 0d39945 into master Jan 7, 2019
@mlp6 mlp6 deleted the fieldC branch January 7, 2019 03:06
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.

None yet

3 participants