Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Middle marker
- A middle marker works on the same principle as an outer marker.
- It is normally positioned 0.5 to 0.8 nautical miles (1 km) before the runway threshold.
- When the aircraft is above the middle marker, the receiver's amber middle marker light starts blinking,
- and a repeating pattern of audible morse code-like dot-dashes at a frequency of 1,300 Hz in the headset.
- This alerts the pilot that the CAT I missed approach point (typically 200 feet (60 m) above the ground level on the glideslope)
- has been passed and should have already initiated the missed approach if one of several visual cues has not been spotted.
- */
- const int buzzerPin = 12;
- const int ledPin = 13;
- const int tonefreq = 1300;
- const int dotlength = 100;
- const int dashlength = dotlength * 3;
- const int inter = dotlength;
- void setup()
- {
- pinMode(buzzerPin, OUTPUT);
- pinMode(ledPin, OUTPUT);
- Serial.begin(9600);
- }
- void loop()
- {
- dot();
- dash();
- delay(100);
- }
- void dot()
- {
- tone(buzzerPin, tonefreq);
- digitalWrite(ledPin, HIGH);
- delay(dotlength);
- noTone(buzzerPin);
- digitalWrite(ledPin, LOW);
- delay(inter);
- }
- void dash()
- {
- tone(buzzerPin, tonefreq);
- digitalWrite(ledPin, HIGH);
- delay(dashlength);
- noTone(buzzerPin);
- digitalWrite(ledPin, LOW);
- delay(inter);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement