- Messages
- 527
- Country
-
Hello,
In the interior model XML file, I am trying to override the SET_STATE_EXTERNAL parameter. In fact, I use the ASOBO_AUTOPILOT_Knob_Heading_Template for my heading knob, which is defined in Autopilot_Subtemplates.xml, and I would like to change the code that is executed when the knob is rotated.
In the template, it is defined like this:
For my heading knob, I would like to have a different code, so in my definition, I redefined this with my own code, something like:
As it didn't work, I tried to override the template definition by setting the default parameters that are used in the template, something like:
It doesn't work either.
Can you please help me having my code overriding the SET_STATE_EXTERNAL ?
Thanks,
Eric
In the interior model XML file, I am trying to override the SET_STATE_EXTERNAL parameter. In fact, I use the ASOBO_AUTOPILOT_Knob_Heading_Template for my heading knob, which is defined in Autopilot_Subtemplates.xml, and I would like to change the code that is executed when the knob is rotated.
In the template, it is defined like this:
Code:
<SET_STATE_EXTERNAL>1 -1 p0 0 > ? sp0 #HEADING_INDEX# (A:AUTOPILOT HEADING LOCK DIR:#HEADING_INDEX#, degrees) 1 l0 * + dnor (>K:2:HEADING_BUG_SET)</SET_STATE_EXTERNAL>
For my heading knob, I would like to have a different code, so in my definition, I redefined this with my own code, something like:
Code:
<SET_STATE_EXTERNAL>p0 0 > if{ (>K:HEADING_BUG_INC) } els{ (>K:HEADING_BUG_DEC) }</SET_STATE_EXTERNAL>
As it didn't work, I tried to override the template definition by setting the default parameters that are used in the template, something like:
Code:
<Parameters Type="Default">
<SET_STATE_EXTERNAL>p0 0 > if{ (>K:HEADING_BUG_INC) } els{ (>K:HEADING_BUG_DEC) }</SET_STATE_EXTERNAL>
</Parameters>
It doesn't work either.
Can you please help me having my code overriding the SET_STATE_EXTERNAL ?
Thanks,
Eric