Skip to content

Commit

Permalink
fix a bug in push TX in STL sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Yufeng Deng (Nightingale 8/11) committed Nov 15, 2016
1 parent b9bdb74 commit 1c05000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SetUpC5_2Shear_wave_STL.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
for ipush = 1:npush
n = m+1+ipush;
TX(n).waveform = 2;
TX(n).Origin = [Trans.radius*sind(pushAngleDegree(ipush)) 0.0 Trans.radius*cosd(pushAngleDegree(ipush))];
TX(n).Origin = [Trans.radius*sind(pushAngleDegree(ipush)) 0.0 Trans.radius*cosd(pushAngleDegree(ipush))-Trans.radius];
TX(n).focus = round(push_focus/w);
centerElement(ipush) = find(abs(pushAngleDegree(ipush)-elementAngleDegree)==min(abs(pushAngleDegree(ipush)-elementAngleDegree)),1);
if centerElement(ipush) < onele_push/2
Expand Down

0 comments on commit 1c05000

Please sign in to comment.