- Messages
- 371
- Country
Hello,
Since 2 days, I try to write in my FMC gauge a part of code to control Pushback, but I have an issue that I don't understand the reason.
I have in my gauge this picture, to move the pushback.
Clockwise from north direction:
-Forward Straight line
-forward turn right 45°
- backward turn right 90°
- backward turn right 45°
- Backward straight line
- Bacward turn left 45°
- Backward turn left 90°
- Forward turn left 45°
- center red : STOP pushback
So, all direction works perfectly, except the second arrow,: "FORWARD 45°". This function works only if the target heading of the pushback is < 180°. Exemple, Aircraft heading is 120° and you click, puckback forward and turn 45° correctly to heading 165° . But if aircraft is at 165°, it begin to turn, but stop when arrived at heading 180°. If you click again, It move forward, but don't want turn.
If the initial position of the aircraft has a heading > 180°, pushback move forward but turn left !!!!
The left forward 45° arrow works perfectly. Only the right forward 45° arrow bugs !! I tried to add DNOR, but nothing changes.
I don't understand what's happens.
Here is my code; Mouse area are in the order, from point to north, clockwise. THis is the third mouse area section ( "Pushback Forward Right 45") which have the isssue.
Thanks for your help because I am lost.....
Francois
Since 2 days, I try to write in my FMC gauge a part of code to control Pushback, but I have an issue that I don't understand the reason.
I have in my gauge this picture, to move the pushback.
Clockwise from north direction:
-Forward Straight line
-forward turn right 45°
- backward turn right 90°
- backward turn right 45°
- Backward straight line
- Bacward turn left 45°
- Backward turn left 90°
- Forward turn left 45°
- center red : STOP pushback
So, all direction works perfectly, except the second arrow,: "FORWARD 45°". This function works only if the target heading of the pushback is < 180°. Exemple, Aircraft heading is 120° and you click, puckback forward and turn 45° correctly to heading 165° . But if aircraft is at 165°, it begin to turn, but stop when arrived at heading 180°. If you click again, It move forward, but don't want turn.
If the initial position of the aircraft has a heading > 180°, pushback move forward but turn left !!!!
The left forward 45° arrow works perfectly. Only the right forward 45° arrow bugs !! I tried to add DNOR, but nothing changes.
I don't understand what's happens.
Here is my code; Mouse area are in the order, from point to north, clockwise. THis is the third mouse area section ( "Pushback Forward Right 45") which have the isssue.
XML:
<Update>
<Script>
(A:SURFACE RELATIVE GROUND SPEED,Knots) 0.1 >
(L:PusbackTurn,bool) 1 == and if{ (L:Pushbackheading,number) int (A:Plane heading degrees gyro,degrees) int == if{ (>K:TOGGLE_PUSHBACK) (>K:TOGGLE_PUSHBACK) 0 (>L:PusbackTurn,bool) } }
(A:SURFACE RELATIVE GROUND SPEED,Knots) 0.1 >
(L:PusbackForward,bool) 1 == and if{ (L:Pushbackheading,number) 11930465 * (>K:KEY_TUG_HEADING) 0 (>L:PusbackForward,bool) }
</Script>
</Update>
<MouseArea id="Pushback Center STOP">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>538,640</FloatPosition>
<Size>24,24</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>1 (>K:TUG_DISABLE)</Script>
</MouseClick>
<Tooltip id="Tooltip Door">
<DefaultScript>STOP Pushback</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback Forward 0">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>541,603</FloatPosition>
<Size>17,37</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>10 (>K:KEY_TUG_SPEED) (A:Plane heading degrees gyro,degrees) (>L:Pushbackheading,number) 1 (>L:PusbackForward,bool) (L:Pushbackheading,number) 11930465 * (>K:KEY_TUG_HEADING)</Script>
</MouseClick>
<Tooltip id="Tooltip PushBack forward">
<DefaultScript>Forward in a straight line</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback Forward Right 45">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>568,614</FloatPosition>
<Size>22,22</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>10 (>K:KEY_TUG_SPEED) (A:Plane heading degrees gyro,degrees) 45 + (>L:Pushbackheading,number) 1 (>L:PusbackTurn,bool) (L:Pushbackheading,number) 11930465 * (>K:KEY_TUG_HEADING)</Script>
</MouseClick>
<Tooltip id="Tooltip Door">
<DefaultScript>Forward right 45 degrees</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback rear 90 degrees right">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>564,649</FloatPosition>
<Size>37,17</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>1 (>K:TOGGLE_PUSHBACK) 1 (>K:SELECT_2)</Script>
</MouseClick>
<Tooltip id="Tooltip PushBack">
<DefaultScript>Backward Right 90 degrees</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback rear right 45">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>568,670</FloatPosition>
<Size>22,22</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>(A:Plane heading degrees gyro,degrees) 45 - dnor (>L:Pushbackheading,number) (>K:TOGGLE_PUSHBACK) 1 (>K:SELECT_2) 1 (>L:PusbackTurn,bool)</Script>
</MouseClick>
<Tooltip id="Tooltip Door">
<DefaultScript>Backward 45 degrees right</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback Backward 180">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>541,670</FloatPosition>
<Size>17,37</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>1 (>K:TOGGLE_PUSHBACK)</Script>
</MouseClick>
<Tooltip id="Tooltip Door">
<DefaultScript>Backward, in a straight line</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback rear left 45">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>507,671</FloatPosition>
<Size>22,22</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>(A:Plane heading degrees gyro,degrees) 45 + dnor (>L:Pushbackheading,number) (>K:TOGGLE_PUSHBACK) 1 (>K:SELECT_1) 1 (>L:PusbackTurn,bool)</Script>
</MouseClick>
<Tooltip id="Tooltip pushback">
<DefaultScript>Backward left 45</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback rear left 90">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>500,647</FloatPosition>
<Size>37,17</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>1 (>K:TOGGLE_PUSHBACK) 1 (>K:SELECT_1)</Script>
</MouseClick>
<Tooltip id="Tooltip PushBack">
<DefaultScript>Backward left 90 degrees</DefaultScript>
</Tooltip>
</MouseArea>
<MouseArea id="Pushback Forward left 45">
<Visibility>(L:FMC_Window,enum) 40 == (L:SetGroundService,bool) and (A:Sim On Ground,bool) and</Visibility>
<FloatPosition>507,610</FloatPosition>
<Size>22,22</Size>
<CursorType>Hand</CursorType>
<MouseClick id="MouseClick">
<ClickType>LeftSingle</ClickType>
<Script>10 (>K:KEY_TUG_SPEED) (A:Plane heading degrees gyro,degrees) 45 - (>L:Pushbackheading,number) 1 (>L:PusbackTurn,bool) (L:Pushbackheading,number) 11930465 * (>K:KEY_TUG_HEADING)</Script>
</MouseClick>
<Tooltip id="Tooltip Pushback">
<DefaultScript>Move Forward left 45 degrees</DefaultScript>
</Tooltip>
</MouseArea>
Thanks for your help because I am lost.....
Francois
Last edited: