Project 2:
5.
The following is the same electronically steered one dimensional loudspeaker array from problem 4, but with a specific sweep speed function that allows the array to travel the complete 180 degrees of its front in 1 second and then back to its orginal position in 1 second.  The 180 degree front range of a 45 degree directed beam is from -45 degrees to +130 degrees.  Although when you create the theta values to be of this size you can see the symmetric piston that has been neglected in the other problems.  My window went from -pi/2 to pi so in the fourth quadrant you won't see the second piston, but when it crosses into the third and first quadrant it is visible.  This should be ignored, just pay attention to the piston with the black arrow pointing to it.
Click for the code
You can see how the piston moves from its 45 degree angle to 135 degress and -45 degrees by changing the value of cs.
Click for next page
Hosted by www.Geocities.ws

1