20.01.2013 Views

The Art of the Helicopter John Watkinson - Karatunov.net

The Art of the Helicopter John Watkinson - Karatunov.net

The Art of the Helicopter John Watkinson - Karatunov.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fig. 7.38 Producing two’s complement from real bipolar signals. At (a) an <strong>of</strong>fset <strong>of</strong> half scale is added to <strong>the</strong><br />

input. <strong>The</strong> <strong>of</strong>fset input is converted (b) to pure binary. <strong>The</strong> MSB is inverted at (c) to produce two’s complement.<br />

<strong>The</strong> two’s complement system allows two sample values to be added, or mixed, and<br />

<strong>the</strong> result will be referred to <strong>the</strong> system midrange; this is analogous to adding analog<br />

signals in a synchro differential or adding pushrod movements in a mechanical mixer.<br />

Figure 7.39 illustrates how adding two’s complement samples simulates <strong>the</strong> control<br />

mixing process. <strong>The</strong> waveform <strong>of</strong> input A is depicted by solid black samples, and that<br />

<strong>of</strong> B by samples with a solid outline. <strong>The</strong> result <strong>of</strong> mixing is <strong>the</strong> linear sum <strong>of</strong> <strong>the</strong><br />

two waveforms obtained by adding pairs <strong>of</strong> sample values. <strong>The</strong> dashed lines depict <strong>the</strong><br />

output values. Beneath each set <strong>of</strong> samples is <strong>the</strong> calculation that will be seen to give<br />

<strong>the</strong> correct result. Note that <strong>the</strong> calculations are in pure binary. No special arithmetic<br />

is needed to handle two’s complement numbers.<br />

It is <strong>of</strong>ten necessary to phase reverse or invert a control signal, for example in a<br />

cyclic/collective mixer <strong>the</strong> lateral cyclic signal needs to be added to <strong>the</strong> collective signal<br />

on one side <strong>of</strong> <strong>the</strong> swashplate but subtracted on <strong>the</strong> o<strong>the</strong>r. Using inversion, signal<br />

subtraction can be performed using only adding logic. <strong>The</strong> inverted input is added to<br />

perform a subtraction, just as in <strong>the</strong> analog domain. This permits a significant saving<br />

in hardware complexity, since only carry logic is necessary and no borrow mechanism<br />

need be supported.<br />

<strong>The</strong> process <strong>of</strong> inversion in two’s complement is simple. All bits <strong>of</strong> <strong>the</strong> sample value<br />

are inverted to form <strong>the</strong> one’s complement, and one is added. This can be checked by<br />

mentally inverting some <strong>of</strong> <strong>the</strong> values in Figure 7.37. <strong>The</strong> inversion is transparent and<br />

performing a second inversion gives <strong>the</strong> original sample values. When a binary counter<br />

is incremented it will eventually reach <strong>the</strong> all-ones condition. A fur<strong>the</strong>r count will result<br />

in an overflow condition. For example, if a four-bit counter is at 1111 (15 decimal) an<br />

Control 301

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!