Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    75+ Posting Member
    Join Date
    Jun 2011
    Location
    FRANCE
    Posts
    121
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Problem with Tiller control

    Hello,

    I try to control the ailerons, elevator and tiller via 3 separate potentiometers, but I have a strange problem. I use the 3 following variables :

    3708 for the elevator
    3709 for the ailerons
    1426 for the tiller

    Everything is working fine for the elevator and the ailerons. I have a fully deflexions of the surfaces according to my yoke position.

    When I move the tiller potentiometer, the tiller moves according to the potentiometer, but always moves, very quickly, between the center position and the commanded position. The taxi is impossible in such conditions. I investigated a little bit :

    I removed the tiller related lines from my SIOC code, and assigned an USB axe for the tiller directly within PSX. Still the same problem. I finally removed the ailerons related lines from my SIOC code and the tiller is OK.

    I think there is an interaction between the 3709 and 1426 variables, making the tiller come back to 0 at every frame. They should be 100% distinct for separate ailerons and tiller hardware like in my case.

    Thank you very much
    Regards,
    Jean-philippe

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

    Re: Problem with Tiller control

    Further investigations report :

    If I try to control only the tiller with PSXseecon, without any ailerons related variables, the problem is the same. Maybe the problem is not only about the ailerons variable, but linked (ailerons - tiller).
    Regards,
    Jean-philippe

  3. #3
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with Tiller control

    Hello Jean-Philippe,
    Quote Originally Posted by Jean-philippe View Post
    I think there is an interaction between the 3709 and 1426 variables, making the tiller come back to 0 at every frame. They should be 100% distinct for separate ailerons and tiller hardware like in my case.
    The Tiller is completely separate from the others. The Tiller is a Qh variable while the Elevator and Airelons are part of a Qs string variable...
    They are not related at all in my code?!

    Regards,
    Nico

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

    Re: Problem with Tiller control

    I do not understand. You mean there is no tiller control within PSXseecon ? What is var 1426 related ?
    Regards,
    Jean-philippe

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

    Re: Problem with Tiller control

    Ok I understand. Tiller is a separate Qh. But why does the tiller comes back to 0 at every frame when I try to control it via SIOC ?
    Regards,
    Jean-philippe

  6. #6
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with Tiller control

    Quote Originally Posted by Jean-philippe View Post
    Ok I understand. Tiller is a separate Qh. But why does the tiller comes back to 0 at every frame when I try to control it via SIOC ?
    Can you post your SIOC code?

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

    Re: Problem with Tiller control

    My code is very long because I have to map potentiometer values to -999 to +999. I didn't find easier solution. If you have any sugestion...

    My elevator potentiometer goes from 55 to 208 and the ailerons potentiometer from 17 to 185. In this first code I used the same potentiometer for the ailerons and tiller. But the problem is the same with tiller on a separate potentiometer.

    Code:
    Var 3708, name Elevator, static     // ELEVATOR STICK (PSX)
    
    
    Var 8908, name CpElevatorPot, static, Link IOCARD_ANALOGIC, Device 1, Input 1, PosL 0, PosC 127, PosR 255     // CP ELEVATOR POT
    {
        IF &CpElevatorPot = 55
        {
          &Elevator = -999    
        }
        IF &CpElevatorPot = 56
        {
          &Elevator = -989    
        }
        IF &CpElevatorPot = 57
        {
          &Elevator = -976    
        }
        IF &CpElevatorPot = 58
        {
          &Elevator = -963    
        }
        IF &CpElevatorPot = 59
        {
          &Elevator = -950    
        }
        IF &CpElevatorPot = 60
        {
          &Elevator = -937    
        }
        IF &CpElevatorPot = 61
        {
          &Elevator = -924    
        }
        IF &CpElevatorPot = 62
        {
          &Elevator = -911    
        }
        IF &CpElevatorPot = 63
        {
          &Elevator = -898    
        }
        IF &CpElevatorPot = 64
        {
          &Elevator = -885    
        }
        IF &CpElevatorPot = 65
        {
          &Elevator = -872    
        }
        IF &CpElevatorPot = 66
        {
          &Elevator = -859    
        }
        IF &CpElevatorPot = 67
        {
          &Elevator = -846    
        }
        IF &CpElevatorPot = 68
        {
          &Elevator = -833    
        }
        IF &CpElevatorPot = 69
        {
          &Elevator = -820    
        }
        IF &CpElevatorPot = 70
        {
          &Elevator = -807    
        }
        IF &CpElevatorPot = 71
        {
          &Elevator = -794    
        }
        IF &CpElevatorPot = 72
        {
          &Elevator = -781    
        }
        IF &CpElevatorPot = 73
        {
          &Elevator = -768    
        }
        IF &CpElevatorPot = 74
        {
          &Elevator = -755    
        }
        IF &CpElevatorPot = 75
        {
          &Elevator = -742    
        }
        IF &CpElevatorPot = 76
        {
          &Elevator = -729    
        }
        IF &CpElevatorPot = 77
        {
          &Elevator = -716    
        }
        IF &CpElevatorPot = 78
        {
          &Elevator = -703    
        }
        IF &CpElevatorPot = 79
        {
          &Elevator = -690    
        }
        IF &CpElevatorPot = 80
        {
          &Elevator = -677    
        }
        IF &CpElevatorPot = 81
        {
          &Elevator = -664    
        }
        IF &CpElevatorPot = 82
        {
          &Elevator = -651    
        }
        IF &CpElevatorPot = 83
        {
          &Elevator = -638    
        }
        IF &CpElevatorPot = 84
        {
          &Elevator = -625    
        }
        IF &CpElevatorPot = 85
        {
          &Elevator = -612    
        }
        IF &CpElevatorPot = 86
        {
          &Elevator = -598    
        }
        IF &CpElevatorPot = 87
        {
          &Elevator = -585    
        }
        IF &CpElevatorPot = 88
        {
          &Elevator = -572    
        }
        IF &CpElevatorPot = 89
        {
          &Elevator = -559    
        }
        IF &CpElevatorPot = 90
        {
          &Elevator = -546    
        }
        IF &CpElevatorPot = 91
        {
          &Elevator = -533    
        }
        IF &CpElevatorPot = 92
        {
          &Elevator = -520    
        }
        IF &CpElevatorPot = 93
        {
          &Elevator = -507    
        }
        IF &CpElevatorPot = 94
        {
          &Elevator = -494    
        }
        IF &CpElevatorPot = 95
        {
          &Elevator = -481    
        }
        IF &CpElevatorPot = 96
        {
          &Elevator = -468    
        }
        IF &CpElevatorPot = 97
        {
          &Elevator = -455    
        }
        IF &CpElevatorPot = 98
        {
          &Elevator = -442    
        }
        IF &CpElevatorPot = 99
        {
          &Elevator = -429    
        }
        IF &CpElevatorPot = 100
        {
          &Elevator = -416    
        }
        IF &CpElevatorPot = 101
        {
          &Elevator = -403    
        }
        IF &CpElevatorPot = 102
        {
          &Elevator = -390    
        }
        IF &CpElevatorPot = 103
        {
          &Elevator = -377    
        }
        IF &CpElevatorPot = 104
        {
          &Elevator = -364    
        }
        IF &CpElevatorPot = 105
        {
          &Elevator = -351    
        }
        IF &CpElevatorPot = 106
        {
          &Elevator = -338    
        }
        IF &CpElevatorPot = 107
        {
          &Elevator = -325    
        }
        IF &CpElevatorPot = 108
        {
          &Elevator = -312    
        }
        IF &CpElevatorPot = 109
        {
          &Elevator = -299    
        }
        IF &CpElevatorPot = 110
        {
          &Elevator = -286    
        }
        IF &CpElevatorPot = 111
        {
          &Elevator = -273    
        }
        IF &CpElevatorPot = 112
        {
          &Elevator = -260    
        }
        IF &CpElevatorPot = 113
        {
          &Elevator = -247    
        }
        IF &CpElevatorPot = 114
        {
          &Elevator = -234    
        }
        IF &CpElevatorPot = 115
        {
          &Elevator = -221    
        }
        IF &CpElevatorPot = 116
        {
          &Elevator = -208    
        }
        IF &CpElevatorPot = 117
        {
          &Elevator = -195    
        }
        IF &CpElevatorPot = 118
        {
          &Elevator = -182    
        }
        IF &CpElevatorPot = 119
        {
          &Elevator = -169    
        }
        IF &CpElevatorPot = 120
        {
          &Elevator = -156    
        }
        IF &CpElevatorPot = 121
        {
          &Elevator = -143    
        }
        IF &CpElevatorPot = 122
        {
          &Elevator = -130    
        }
        IF &CpElevatorPot = 123
        {
          &Elevator = -117    
        }
        IF &CpElevatorPot = 124
        {
          &Elevator = -104    
        }
        IF &CpElevatorPot = 125
        {
          &Elevator = -91    
        }
        IF &CpElevatorPot = 126
        {
          &Elevator = -78    
        }
        IF &CpElevatorPot = 127
        {
          &Elevator = -65    
        }
        IF &CpElevatorPot = 128
        {
          &Elevator = -52    
        }
        IF &CpElevatorPot = 129
        {
          &Elevator = -39    
        }
        IF &CpElevatorPot = 130
        {
          &Elevator = -26    
        }
        IF &CpElevatorPot = 131
        {
          &Elevator = -13    
        }
        IF &CpElevatorPot = 132
        {
          &Elevator = 0    
        }
        IF &CpElevatorPot = 133
        {
          &Elevator = 13    
        }
        IF &CpElevatorPot = 134
        {
          &Elevator = 26    
        }
        IF &CpElevatorPot = 135
        {
          &Elevator = 39    
        }
        IF &CpElevatorPot = 136
        {
          &Elevator = 52    
        }
        IF &CpElevatorPot = 137
        {
          &Elevator = 65    
        }
        IF &CpElevatorPot = 138
        {
          &Elevator = 78    
        }
        IF &CpElevatorPot = 139
        {
          &Elevator = 91    
        }
        IF &CpElevatorPot = 140
        {
          &Elevator = 104    
        }
        IF &CpElevatorPot = 141
        {
          &Elevator = 117    
        }
        IF &CpElevatorPot = 142
        {
          &Elevator = 130    
        }
        IF &CpElevatorPot = 143
        {
          &Elevator = 143    
        }
        IF &CpElevatorPot = 144
        {
          &Elevator = 156    
        }
        IF &CpElevatorPot = 145
        {
          &Elevator = 169    
        }
        IF &CpElevatorPot = 146
        {
          &Elevator = 182    
        }
        IF &CpElevatorPot = 147
        {
          &Elevator = 195    
        }
        IF &CpElevatorPot = 148
        {
          &Elevator = 208    
        }
        IF &CpElevatorPot = 149
        {
          &Elevator = 221    
        }
        IF &CpElevatorPot = 150
        {
          &Elevator = 234    
        }
        IF &CpElevatorPot = 151
        {
          &Elevator = 247    
        }
        IF &CpElevatorPot = 152
        {
          &Elevator = 260    
        }
        IF &CpElevatorPot = 153
        {
          &Elevator = 273    
        }
        IF &CpElevatorPot = 154
        {
          &Elevator = 286    
        }
        IF &CpElevatorPot = 155
        {
          &Elevator = 299    
        }
        IF &CpElevatorPot = 156
        {
          &Elevator = 312    
        }
        IF &CpElevatorPot = 157
        {
          &Elevator = 325    
        }
        IF &CpElevatorPot = 158
        {
          &Elevator = 338    
        }
        IF &CpElevatorPot = 159
        {
          &Elevator = 351    
        }
        IF &CpElevatorPot = 160
        {
          &Elevator = 364    
        }
        IF &CpElevatorPot = 161
        {
          &Elevator = 377    
        }
        IF &CpElevatorPot = 162
        {
          &Elevator = 390    
        }
        IF &CpElevatorPot = 163
        {
          &Elevator = 403    
        }
        IF &CpElevatorPot = 164
        {
          &Elevator = 416    
        }
        IF &CpElevatorPot = 165
        {
          &Elevator = 429    
        }
        IF &CpElevatorPot = 166
        {
          &Elevator = 442    
        }
        IF &CpElevatorPot = 167
        {
          &Elevator = 455    
        }
        IF &CpElevatorPot = 168
        {
          &Elevator = 468    
        }
        IF &CpElevatorPot = 169
        {
          &Elevator = 481    
        }
        IF &CpElevatorPot = 170
        {
          &Elevator = 494    
        }
        IF &CpElevatorPot = 171
        {
          &Elevator = 507    
        }
        IF &CpElevatorPot = 172
        {
          &Elevator = 520    
        }
        IF &CpElevatorPot = 173
        {
          &Elevator = 533    
        }
        IF &CpElevatorPot = 174
        {
          &Elevator = 546    
        }
        IF &CpElevatorPot = 175
        {
          &Elevator = 559    
        }
        IF &CpElevatorPot = 176
        {
          &Elevator = 572    
        }
        IF &CpElevatorPot = 177
        {
          &Elevator = 585    
        }
        IF &CpElevatorPot = 178
        {
          &Elevator = 598    
        }
        IF &CpElevatorPot = 179
        {
          &Elevator = 611    
        }
        IF &CpElevatorPot = 180
        {
          &Elevator = 624    
        }
        IF &CpElevatorPot = 181
        {
          &Elevator = 637    
        }
        IF &CpElevatorPot = 182
        {
          &Elevator = 650    
        }
        IF &CpElevatorPot = 183
        {
          &Elevator = 663    
        }
        IF &CpElevatorPot = 184
        {
          &Elevator = 676    
        }
        IF &CpElevatorPot = 185
        {
          &Elevator = 689    
        }
        IF &CpElevatorPot = 186
        {
          &Elevator = 702    
        }
        IF &CpElevatorPot = 187
        {
          &Elevator = 715    
        }
        IF &CpElevatorPot = 188
        {
          &Elevator = 728    
        }
        IF &CpElevatorPot = 189
        {
          &Elevator = 741    
        }
        IF &CpElevatorPot = 190
        {
          &Elevator = 754    
        }
        IF &CpElevatorPot = 191
        {
          &Elevator = 767    
        }
        IF &CpElevatorPot = 192
        {
          &Elevator = 780    
        }
        IF &CpElevatorPot = 193
        {
          &Elevator = 793    
        }
        IF &CpElevatorPot = 194
        {
          &Elevator = 806    
        }
        IF &CpElevatorPot = 195
        {
          &Elevator = 819    
        }
        IF &CpElevatorPot = 196
        {
          &Elevator = 832    
        }
        IF &CpElevatorPot = 197
        {
          &Elevator = 845    
        }
        IF &CpElevatorPot = 198
        {
          &Elevator = 858    
        }
        IF &CpElevatorPot = 199
        {
          &Elevator = 871    
        }
        IF &CpElevatorPot = 200
        {
          &Elevator = 884    
        }
        IF &CpElevatorPot = 201
        {
          &Elevator = 897    
        }
        IF &CpElevatorPot = 202
        {
          &Elevator = 910    
        }
        IF &CpElevatorPot = 203
        {
          &Elevator = 923    
        }
        IF &CpElevatorPot = 204
        {
          &Elevator = 936    
        }
        IF &CpElevatorPot = 205
        {
          &Elevator = 949    
        }
        IF &CpElevatorPot = 206
        {
          &Elevator = 962    
        }
        IF &CpElevatorPot = 207
        {
          &Elevator = 975    
        }
        IF &CpElevatorPot = 208
        {
          &Elevator = 999    
        }
    }
    
    
    Var 3709, name Ailerons, static     // AILERONS CONTROL (PSX)
    
    
    Var 1426, name Tiller, static     // TILLER (PSX)
    
    
    Var 8910, name CpAileronsPot, static, Link IOCARD_ANALOGIC, Device 1, Input 2, PosL 0, PosC 127, PosR 255     // CP AILERONS POT
    {
          IF &CpAileronsPot = 17
          {
            &Ailerons = -999    
            &Tiller = -999    
          }
          IF &CpAileronsPot = 18
          {
            &Ailerons = -986    
            &Tiller = -986    
          }
          IF &CpAileronsPot = 19
          {
            &Ailerons = -974    
            &Tiller = -974    
          }
          IF &CpAileronsPot = 20
          {
            &Ailerons = -962    
            &Tiller = -962    
          }
          IF &CpAileronsPot = 21
          {
            &Ailerons = -950    
            &Tiller = -950    
          }
          IF &CpAileronsPot = 22
          {
            &Ailerons = -938    
            &Tiller = -938    
          }
          IF &CpAileronsPot = 23
          {
            &Ailerons = -926    
            &Tiller = -926    
          }
          IF &CpAileronsPot = 24
          {
            &Ailerons = -914    
            &Tiller = -914    
          }
          IF &CpAileronsPot = 25
          {
            &Ailerons = -902    
            &Tiller = -902    
          }
          IF &CpAileronsPot = 26
          {
            &Ailerons = -890    
            &Tiller = -890    
          }
          IF &CpAileronsPot = 27
          {
            &Ailerons = -878    
            &Tiller = -878    
          }
          IF &CpAileronsPot = 28
          {
            &Ailerons = -866    
            &Tiller = -866    
          }
          IF &CpAileronsPot = 29
          {
            &Ailerons = -854    
            &Tiller = -854    
          }
          IF &CpAileronsPot = 30
          {
            &Ailerons = -842    
            &Tiller = -842    
          }
          IF &CpAileronsPot = 31
          {
            &Ailerons = -830    
            &Tiller = -830    
          }
          IF &CpAileronsPot = 32
          {
            &Ailerons = -818    
            &Tiller = -818    
          }
          IF &CpAileronsPot = 33
          {
            &Ailerons = -806    
            &Tiller = -806    
          }
          IF &CpAileronsPot = 34
          {
            &Ailerons = -794    
            &Tiller = -794    
          }
          IF &CpAileronsPot = 35
          {
            &Ailerons = -782    
            &Tiller = -782    
          }
          IF &CpAileronsPot = 36
          {
            &Ailerons = -770    
            &Tiller = -770    
          }
          IF &CpAileronsPot = 37
          {
            &Ailerons = -758    
            &Tiller = -758    
          }
          IF &CpAileronsPot = 38
          {
            &Ailerons = -746    
            &Tiller = -746    
          }
          IF &CpAileronsPot = 39
          {
            &Ailerons = -734    
            &Tiller = -734    
          }
          IF &CpAileronsPot = 40
          {
            &Ailerons = -722    
            &Tiller = -722    
          }
          IF &CpAileronsPot = 41
          {
            &Ailerons = -710    
            &Tiller = -710    
          }
          IF &CpAileronsPot = 42
          {
            &Ailerons = -698    
            &Tiller = -698    
          }
          IF &CpAileronsPot = 43
          {
            &Ailerons = -686    
            &Tiller = -686    
          }
          IF &CpAileronsPot = 44
          {
            &Ailerons = -674    
            &Tiller = -674    
          }
          IF &CpAileronsPot = 45
          {
            &Ailerons = -662    
            &Tiller = -662    
          }
          IF &CpAileronsPot = 46
          {
            &Ailerons = -650    
            &Tiller = -650    
          }
          IF &CpAileronsPot = 47
          {
            &Ailerons = -638    
            &Tiller = -638    
          }
          IF &CpAileronsPot = 48
          {
            &Ailerons = -627    
            &Tiller = -627    
          }
          IF &CpAileronsPot = 49
          {
            &Ailerons = -616    
            &Tiller = -616    
          }
          IF &CpAileronsPot = 50
          {
            &Ailerons = -605    
            &Tiller = -605    
          }
          IF &CpAileronsPot = 51
          {
            &Ailerons = -594    
            &Tiller = -594    
          }
          IF &CpAileronsPot = 52
          {
            &Ailerons = -583    
            &Tiller = -583    
          }
          IF &CpAileronsPot = 53
          {
            &Ailerons = -572    
            &Tiller = -572    
          }
          IF &CpAileronsPot = 54
          {
            &Ailerons = -561    
            &Tiller = -561    
          }
          IF &CpAileronsPot = 55
          {
            &Ailerons = -550    
            &Tiller = -550    
          }
          IF &CpAileronsPot = 56
          {
            &Ailerons = -539    
            &Tiller = -539    
          }
          IF &CpAileronsPot = 57
          {
            &Ailerons = -528    
            &Tiller = -528    
          }
          IF &CpAileronsPot = 58
          {
            &Ailerons = -517    
            &Tiller = -517    
          }
          IF &CpAileronsPot = 59
          {
            &Ailerons = -506    
            &Tiller = -506    
          }
          IF &CpAileronsPot = 60
          {
            &Ailerons = -495    
            &Tiller = -495    
          }
          IF &CpAileronsPot = 61
          {
            &Ailerons = -484    
            &Tiller = -484    
          }
          IF &CpAileronsPot = 62
          {
            &Ailerons = -473    
            &Tiller = -473    
          }
          IF &CpAileronsPot = 63
          {
            &Ailerons = -462    
            &Tiller = -462    
          }
          IF &CpAileronsPot = 64
          {
            &Ailerons = -451    
            &Tiller = -451    
          }
          IF &CpAileronsPot = 65
          {
            &Ailerons = -440    
            &Tiller = -440    
          }
          IF &CpAileronsPot = 66
          {
            &Ailerons = -429    
            &Tiller = -429    
          }
          IF &CpAileronsPot = 67
          {
            &Ailerons = -418    
            &Tiller = -418    
          }
          IF &CpAileronsPot = 68
          {
            &Ailerons = -407    
            &Tiller = -407    
          }
          IF &CpAileronsPot = 69
          {
            &Ailerons = -396    
            &Tiller = -396    
          }
          IF &CpAileronsPot = 70
          {
            &Ailerons = -385    
            &Tiller = -385    
          }
          IF &CpAileronsPot = 71
          {
            &Ailerons = -374    
            &Tiller = -374    
          }
          IF &CpAileronsPot = 72
          {
            &Ailerons = -363    
            &Tiller = -363    
          }
          IF &CpAileronsPot = 73
          {
            &Ailerons = -352    
            &Tiller = -352    
          }
          IF &CpAileronsPot = 74
          {
            &Ailerons = -341    
            &Tiller = -341    
          }
          IF &CpAileronsPot = 75
          {
            &Ailerons = -330    
            &Tiller = -330    
          }
          IF &CpAileronsPot = 76
          {
            &Ailerons = -319    
            &Tiller = -319    
          }
          IF &CpAileronsPot = 77
          {
            &Ailerons = -308    
            &Tiller = -308    
          }
          IF &CpAileronsPot = 78
          {
            &Ailerons = -297    
            &Tiller = -297    
          }
          IF &CpAileronsPot = 79
          {
            &Ailerons = -286    
            &Tiller = -286    
          }
          IF &CpAileronsPot = 80
          {
            &Ailerons = -275    
            &Tiller = -275    
          }
          IF &CpAileronsPot = 81
          {
            &Ailerons = -264    
            &Tiller = -264    
          }
          IF &CpAileronsPot = 82
          {
            &Ailerons = -253    
            &Tiller = -253    
          }
          IF &CpAileronsPot = 83
          {
            &Ailerons = -242    
            &Tiller = -242    
          }
          IF &CpAileronsPot = 84
          {
            &Ailerons = -231    
            &Tiller = -231    
          }
          IF &CpAileronsPot = 85
          {
            &Ailerons = -220    
            &Tiller = -220    
          }
          IF &CpAileronsPot = 86
          {
            &Ailerons = -209    
            &Tiller = -209    
          }
          IF &CpAileronsPot = 87
          {
            &Ailerons = -198    
            &Tiller = -198    
          }
          IF &CpAileronsPot = 88
          {
            &Ailerons = -187    
            &Tiller = -187    
          }
          IF &CpAileronsPot = 89
          {
            &Ailerons = -176    
            &Tiller = -176    
          }
          IF &CpAileronsPot = 90
          {
            &Ailerons = -165    
            &Tiller = -165    
          }
          IF &CpAileronsPot = 91
          {
            &Ailerons = -154    
            &Tiller = -154    
          }
          IF &CpAileronsPot = 92
          {
            &Ailerons = -143    
            &Tiller = -143    
          }
          IF &CpAileronsPot = 93
          {
            &Ailerons = -132    
            &Tiller = -132    
          }
          IF &CpAileronsPot = 94
          {
            &Ailerons = -121    
            &Tiller = -121    
          }
          IF &CpAileronsPot = 95
          {
            &Ailerons = -110    
            &Tiller = -110    
          }
          IF &CpAileronsPot = 96
          {
            &Ailerons = -99    
            &Tiller = -99    
          }
          IF &CpAileronsPot = 97
          {
            &Ailerons = -88    
            &Tiller = -88    
          }
          IF &CpAileronsPot = 98
          {
            &Ailerons = -77    
            &Tiller = -77    
          }
          IF &CpAileronsPot = 99
          {
            &Ailerons = -66    
            &Tiller = -66    
          }
          IF &CpAileronsPot = 100
          {
            &Ailerons = -55    
            &Tiller = -55    
          }
          IF &CpAileronsPot = 101
          {
            &Ailerons = -44    
            &Tiller = -44    
          }
          IF &CpAileronsPot = 102
          {
            &Ailerons = -33    
            &Tiller = -33    
          }
          IF &CpAileronsPot = 103
          {
            &Ailerons = -22    
            &Tiller = -22    
          }
          IF &CpAileronsPot = 104
          {
            &Ailerons = -11    
            &Tiller = -11    
          }
          IF &CpAileronsPot = 105
          {
            &Ailerons = 0    
            &Tiller = 0    
          }
          IF &CpAileronsPot = 106
          {
            &Ailerons = 12    
            &Tiller = 12    
          }
          IF &CpAileronsPot = 107
          {
            &Ailerons = 24    
            &Tiller = 24    
          }
          IF &CpAileronsPot = 108
          {
            &Ailerons = 36    
            &Tiller = 36    
          }
          IF &CpAileronsPot = 109
          {
            &Ailerons = 48    
            &Tiller = 48    
          }
          IF &CpAileronsPot = 110
          {
            &Ailerons = 60    
            &Tiller = 60    
          }
          IF &CpAileronsPot = 111
          {
            &Ailerons = 72    
            &Tiller = 72    
          }
          IF &CpAileronsPot = 112
          {
            &Ailerons = 84    
            &Tiller = 84    
          }
          IF &CpAileronsPot = 113
          {
            &Ailerons = 96    
            &Tiller = 96    
          }
          IF &CpAileronsPot = 114
          {
            &Ailerons = 108    
            &Tiller = 108    
          }
          IF &CpAileronsPot = 115
          {
            &Ailerons = 120    
            &Tiller = 120    
          }
          IF &CpAileronsPot = 116
          {
            &Ailerons = 132    
            &Tiller = 132    
          }
          IF &CpAileronsPot = 117
          {
            &Ailerons = 144    
            &Tiller = 144    
          }
          IF &CpAileronsPot = 118
          {
            &Ailerons = 156    
            &Tiller = 156    
          }
          IF &CpAileronsPot = 119
          {
            &Ailerons = 168    
            &Tiller = 168    
          }
          IF &CpAileronsPot = 120
          {
            &Ailerons = 180    
            &Tiller = 180    
          }
          IF &CpAileronsPot = 121
          {
            &Ailerons = 192    
            &Tiller = 192    
          }
          IF &CpAileronsPot = 122
          {
            &Ailerons = 204    
            &Tiller = 204    
          }
          IF &CpAileronsPot = 123
          {
            &Ailerons = 216    
            &Tiller = 216    
          }
          IF &CpAileronsPot = 124
          {
            &Ailerons = 228    
            &Tiller = 228    
          }
          IF &CpAileronsPot = 125
          {
            &Ailerons = 240    
            &Tiller = 240    
          }
          IF &CpAileronsPot = 126
          {
            &Ailerons = 252    
            &Tiller = 252    
          }
          IF &CpAileronsPot = 127
          {
            &Ailerons = 264    
            &Tiller = 264    
          }
          IF &CpAileronsPot = 128
          {
            &Ailerons = 276    
            &Tiller = 276    
          }
          IF &CpAileronsPot = 129
          {
            &Ailerons = 288    
            &Tiller = 288    
          }
          IF &CpAileronsPot = 130
          {
            &Ailerons = 300    
            &Tiller = 300    
          }
          IF &CpAileronsPot = 131
          {
            &Ailerons = 312    
            &Tiller = 312    
          }
          IF &CpAileronsPot = 132
          {
            &Ailerons = 324    
            &Tiller = 324    
          }
          IF &CpAileronsPot = 133
          {
            &Ailerons = 336    
            &Tiller = 336    
          }
          IF &CpAileronsPot = 134
          {
            &Ailerons = 348    
            &Tiller = 348    
          }
          IF &CpAileronsPot = 135
          {
            &Ailerons = 360    
            &Tiller = 360    
          }
          IF &CpAileronsPot = 136
          {
            &Ailerons = 372    
            &Tiller = 372    
          }
          IF &CpAileronsPot = 137
          {
            &Ailerons = 384    
            &Tiller = 384    
          }
          IF &CpAileronsPot = 138
          {
            &Ailerons = 396    
            &Tiller = 396    
          }
          IF &CpAileronsPot = 139
          {
            &Ailerons = 408    
            &Tiller = 408    
          }
          IF &CpAileronsPot = 140
          {
            &Ailerons = 420    
            &Tiller = 420    
          }
          IF &CpAileronsPot = 141
          {
            &Ailerons = 432    
            &Tiller = 432    
          }
          IF &CpAileronsPot = 142
          {
            &Ailerons = 444    
            &Tiller = 444    
          }
          IF &CpAileronsPot = 143
          {
            &Ailerons = 456    
            &Tiller = 456    
          }
          IF &CpAileronsPot = 144
          {
            &Ailerons = 468    
            &Tiller = 468    
          }
          IF &CpAileronsPot = 145
          {
            &Ailerons = 481    
            &Tiller = 481    
          }
          IF &CpAileronsPot = 146
          {
            &Ailerons = 494    
            &Tiller = 494    
          }
          IF &CpAileronsPot = 147
          {
            &Ailerons = 507    
            &Tiller = 507    
          }
          IF &CpAileronsPot = 148
          {
            &Ailerons = 520    
            &Tiller = 520    
          }
          IF &CpAileronsPot = 149
          {
            &Ailerons = 533    
            &Tiller = 533    
          }
          IF &CpAileronsPot = 150
          {
            &Ailerons = 546    
            &Tiller = 546    
          }
          IF &CpAileronsPot = 151
          {
            &Ailerons = 559    
            &Tiller = 559    
          }
          IF &CpAileronsPot = 152
          {
            &Ailerons = 572    
            &Tiller = 572    
          }
          IF &CpAileronsPot = 153
          {
            &Ailerons = 585    
            &Tiller = 585    
          }
          IF &CpAileronsPot = 154
          {
            &Ailerons = 598    
            &Tiller = 598    
          }
          IF &CpAileronsPot = 155
          {
            &Ailerons = 612    
            &Tiller = 612    
          }
          IF &CpAileronsPot = 156
          {
            &Ailerons = 625    
            &Tiller = 625    
          }
          IF &CpAileronsPot = 157
          {
            &Ailerons = 638    
            &Tiller = 638    
          }
          IF &CpAileronsPot = 158
          {
            &Ailerons = 651    
            &Tiller = 651    
          }
          IF &CpAileronsPot = 159
          {
            &Ailerons = 664    
            &Tiller = 664    
          }
          IF &CpAileronsPot = 160
          {
            &Ailerons = 677    
            &Tiller = 677    
          }
          IF &CpAileronsPot = 161
          {
            &Ailerons = 690    
            &Tiller = 690    
          }
          IF &CpAileronsPot = 162
          {
            &Ailerons = 703    
            &Tiller = 703    
          }
          IF &CpAileronsPot = 163
          {
            &Ailerons = 716    
            &Tiller = 716    
          }
          IF &CpAileronsPot = 164
          {
            &Ailerons = 729    
            &Tiller = 729    
          }
          IF &CpAileronsPot = 165
          {
            &Ailerons = 742    
            &Tiller = 742    
          }
          IF &CpAileronsPot = 166
          {
            &Ailerons = 755    
            &Tiller = 755    
          }
          IF &CpAileronsPot = 167
          {
            &Ailerons = 768    
            &Tiller = 768    
          }
          IF &CpAileronsPot = 168
          {
            &Ailerons = 781    
            &Tiller = 781    
          }
          IF &CpAileronsPot = 169
          {
            &Ailerons = 794    
            &Tiller = 794    
          }
          IF &CpAileronsPot = 170
          {
            &Ailerons = 807    
            &Tiller = 807    
          }
          IF &CpAileronsPot = 171
          {
            &Ailerons = 820    
            &Tiller = 820    
          }
          IF &CpAileronsPot = 172
          {
            &Ailerons = 833    
            &Tiller = 833    
          }
          IF &CpAileronsPot = 173
          {
            &Ailerons = 846    
            &Tiller = 846    
          }
          IF &CpAileronsPot = 174
          {
            &Ailerons = 859    
            &Tiller = 859    
          }
          IF &CpAileronsPot = 175
          {
            &Ailerons = 872    
            &Tiller = 872    
          }
          IF &CpAileronsPot = 176
          {
            &Ailerons = 885    
            &Tiller = 885    
          }
          IF &CpAileronsPot = 177
          {
            &Ailerons = 898    
            &Tiller = 898    
          }
          IF &CpAileronsPot = 178
          {
            &Ailerons = 911    
            &Tiller = 911    
          }
          IF &CpAileronsPot = 179
          {
            &Ailerons = 924    
            &Tiller = 924    
          }
          IF &CpAileronsPot = 180
          {
            &Ailerons = 937    
            &Tiller = 937    
          }
          IF &CpAileronsPot = 181
          {
            &Ailerons = 950    
            &Tiller = 950    
          }
          IF &CpAileronsPot = 182
          {
            &Ailerons = 963    
            &Tiller = 963    
          }
          IF &CpAileronsPot = 183
          {
            &Ailerons = 976    
            &Tiller = 976    
          }
          IF &CpAileronsPot = 184
          {
            &Ailerons = 989    
            &Tiller = 989    
          }
          IF &CpAileronsPot = 185
          {
            &Ailerons = 999    
            &Tiller = 999    
          } 
    }
    Regards,
    Jean-philippe

  8. #8
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with Tiller control

    Quote Originally Posted by Jean-philippe View Post
    My code is very long because I have to map potentiometer values to -999 to +999. I didn't find easier solution. If you have any sugestion...
    Just a first observation, why don't you do this:

    Code:
    Var 3708, name CpElevatorPot, static, Link IOCARD_ANALOGIC, Device 1, Input 1, PosL -999, PosC 0, PosR 999    
    Var 3709, name CpAileronPot, static, Link IOCARD_ANALOGIC, Device 1, Input 2, PosL -999, PosC 0, PosR 999     
    Var 1406, name CpTillerPot, static, Link IOCARD_ANALOGIC, Device 1, Input 3, PosL -999, PosC 0, PosR 999

    and your vars 8908 en 8910 should not be static... only PSXseecon vars need to be static.

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

    Re: Problem with Tiller control

    The -999 limit for posL is out of range. SIOC doesn't accept this value.
    Regards,
    Jean-philippe

  10. #10
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Problem with Tiller control

    I see, then you should use this for each potentiometer:

    Code:
    Var 1406 name Tiller static
    
    
    Var 9000 name CpTillerpot Link IOCARD_ANALOGIC, Device 1, Input 3, PosL 0, PosC 127, PosR 255
    {
      L0 = &CpTillerpot * 8
      &Tiller = L0 - 1000 
    // no need to check for boundaries while PSXseecon will limit Var 1406 to -999 and 999 
    }

Page 1 of 2 12 LastLast