Tuesday, September 23, 2008

Fisher Stove Csa Grand Papa

Nineteenth Day (19 th) - 07/25/2008

started the class engaged in redesigning the program height class we created earlier. We proposed another approach to program because the other method was based on a rather more rude and prone to failure (recall that ever feature). We thank Professor Mariano Foullier by the idea.

The first program, called apogee 1.0, consisted of the following programming sequence:

  • It creates a single byte variable called Index and a 16 Byte array called Array Index is
  • initialized to 00 and is used to direct a
  • Array data is entered in an Array {}
  • Index Index Increase
  • other data is entered in Array
  • {Index} {Index array is compared with Array} {Index " 1} if greater Array Index-1} {start again, but continued
  • Index is increased again
  • a third data is entered in array} {Index
  • same comparison is performed if greater Array {Index -1} start again, but continued
  • Apogee Detected (Sub-routine Apogee)

is, the program took a sample, then another, and compared, if the first was greater than the second, rocket was descending, to prevent noise then activate the swing routine third sample was taken to verify definitively the decline of the rocket. This program was highly fallible and in fact never went as it should.

is why we schedule the program we call Apogee 2.0, the sequence of programming was:

  • It creates an array of 16 bytes and 1 byte variable that directs you are Array and Index.
  • It creates a variable used to count 1 Byte Cont call initialized to 0.
  • all elements are initialized to 0
  • the first data is entered in Array {0}
  • all data are rotated towards the end of Array (Array {0} Array becomes {1}, etc..) the last data is lost.
  • contiguous data are compared from the beginning of the array to the end, if the values \u200b\u200bare rising is because the rocket is falling, every time there is a decrease of adding value to the next Cont.
  • If at the end comparison of the entire Array Cont is 3 or more, you run the subroutine peak. If not, enter other data into Array {0} and it follows from that step.

This program was much more effective. I did was go entering data one by one in an empty array and compare it with others. Thus, whenever data is entered, it runs the full comparison of Array. Until there is 3 drops followed, do not jump to the sub-routine of Apogee. This program will operate properly and meet our needs.

0 comments:

Post a Comment