Results 1 to 3 of 3
  1. #1
    New Member
    Join Date
    Jan 2006
    Location
    Florida, USA
    Posts
    4
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Outer, Middle, Inner Marker lights

    Hi All,

    I am trying to get my Arduino Teeny 2.0 to read and display the MOI lights from FSX and have it light the appropriate external LEDs.

    Dismal failures for the last few days. Any insight would be appreciated.

  2. #2
    150+ Forum Groupie
    Join Date
    Nov 2013
    Location
    Evansville, Indiana
    Posts
    243
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Outer, Middle, Inner Marker lights

    We'll need to see your code.
    Can you get your Arduino to connect to Link2fs?

    In Link2FS Multi, =V is the Extraction that your Arduino needs to read for the marker state.
    =V1 should indicate the Outer Marker is lit
    =V2 should indicate the Middle Marker is lit
    =V3 should indicate the Inner Marker is lit

    Many of us use a Switch Case for receiving info from Link2FS to the Arduino.

    Marker lights like Gear Indication lights are a good place to start with the basics of Arduino, Link2FS, and FSX.

    Again show us your code so far.

    ~Fess
    I will only ever be, half the Geek that I wished I was.
    TheGeekForge.Com

  3. #3
    75+ Posting Member
    Join Date
    Nov 2011
    Location
    UK
    Posts
    77
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Outer, Middle, Inner Marker lights

    Here is my code used for the marker which I have incorporated into my audio panel script. I have tested this and it works.

    Code:
    case 'V':{//Found the second identifier ("=V" Marker position)mkr = "";
    mkr += getChar();
    int mkrINT = mkr.toInt(); // convert it to an integer (Thanks Phill)
    if (mkrINT == 1) {digitalWrite(10, HIGH);} else {digitalWrite(10, LOW);}
    if (mkrINT == 2) {digitalWrite(6, HIGH);} else {digitalWrite(6, LOW);}
    if (mkrINT == 3) {digitalWrite(12, HIGH);} else {digitalWrite(12, LOW);}
    break;

Tags for this Thread