2 * le funzioni finali sono da controllare
8 enum { // Stati della FMS
9 idle, // Throttle a zero
14 // Due LED con lampeggio alternato:
15 Lampeggiatore right = 3;
17 const byte thrPin = A3;
24 // Serial.begin(9600);
26 randomSeed(analogRead(0));
31 thrIn = analogRead(3);
32 thr = constrain(thrIn / 4 , 0, 255) ;
37 } else if ( thr > 245 ) {
45 // digitalWrite(3,LOW);
50 // Due LED con lampeggio alternato:
51 right.Blink(1120 - 4 * thr );
55 digitalWrite(3, HIGH);
61 // Serial.print(thrIn);
62 // Serial.print("\t thr:");
64 // Serial.print("\t state:");
65 // Serial.println(state);