Results 1 to 3 of 3

Thread: Sioc encoder

  1. #1
    10+ Posting Member
    Join Date
    Jan 2014
    Location
    México
    Posts
    11
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Sioc encoder

    hi ¡

    i used the sioc creator to create the variable for the heading encoder and run the ssi script on sioc.exe
    the variable looks like that

    Var 0001, name HDG_ENC, Link IOCARD_ENCODER, Input 1, Aceleration 1, Type 2

    i'm sending the serial message to iocp Arn.Resp:1=1: to increase heading and Arn.Resp:1=0: to decrease but it doesn't work. how can i use Arn.Resp to change heading from encoder ?? i'm using an arduino with phyton script to connect to iocp thanks.

  2. #2
    2000+ Poster - Never Leaves the Sim
    Join Date
    Mar 2008
    Location
    France,Nice
    Posts
    2,428
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Sioc encoder

    Hi

    To decrease, you must send a negative value (-1).
    Also don't forget to send the CRLF bytes at the end of the TCP frame, in pseudo code:
    'Arn.Resp:1=1:' + $0D + $0A
    and
    'Arn.Resp:1=-1:' + $0D + $0A

    Regards,
    JL

  3. #3
    10+ Posting Member
    Join Date
    Jan 2014
    Location
    México
    Posts
    11
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Sioc encoder

    thanks JL !!

    It works now i just added Arn.Resp:1=0 in both to indicate that encoder has stoped it works more faster than lua script thanks again !!!!