My first post , but I've been reading posts for the last year, and I must say the quality of the answers is first class and I have learnt so much.
But I need some help.
I'm trying to replicate the Bendixking KDI572 DME gauge.
I've done most of it, but it has a function where it displays the last selected Nav device, this is called "HLD" and how to make it work is proving a struggle.
When the gauge is set to the HLD position it displays the last selected Nav signal and this then allows the Nav device to be changed to a different frequency without changing the HLD display, the display needs to continue to show the distance speed and time.
My question is how to capture and hold the HLD frequency without it being changed by the NAV device.
My code below will display the HLD data ok, but its not updating because the L: are only taking a snapshot of the current position when I click the HLD click spot.
Not the worlds smartest code I know.
Regards
Dave
N1 Selected
%((A:NAV1 DMESPEED, knots) 0 <)%{if} --- --- --- %((A:NAV1 DMESPEED, knots) (>L:NAV_NAV1_DMESPEED,knots))%{else}
%((L
ME_HLD,bool) 0 ==)%{if}
%((A:NAV DME:1, nmiles) 999 min 0 max s0)%!5.1f!
%((A:NAV DMESPEED:1, knots) 999 min 0 max s1)%!03d!
%(l0 l1 / 60 *)%!d!%
%((A:NAV DME:1, nmiles) (>L:NAV_DME_1,nmiles))
%((A:NAV DMESPEED:1, knots) (>L:NAV_DMESPEED_1,knots))
%((l0 l1 / 60 *) (>L:NAV_DMETIME_1))
%((A:NAV1 DMESPEED, knots) (>L:NAV_NAV1_DMESPEED,knots))
%{end}
%{end}
HLD Selected
%((L
ME_N1,bool) (L
ME_HLD,bool) and) %{if}
%((L:NAV_NAV1_DMESPEED,knots) 0 <)%{if} --- --- ---%{else}
%((L:NAV_DME_1,nmiles) 999 min 0 max s4)%!5.1f!
%((L:NAV_DMESPEED_1,knots) 999 min 0 max s5)%!03d!
%(l4 l5 / 60 *)%!d! %{end}%
%{else}
%((L:NAV_NAV2_DMESPEED,knots) 0 <)%{if} --- --- ---%{else}
%((L:NAV_DME_2,nmiles) 999 min 0 max s6)%!5.1f!
%((L:NAV_DMESPEED_2,knots) 999 min 0 max s7)%!03d!
%((l6 l7 / 60 *)%!d! %{end}%
%(0 (>L
ME_N1,bool))
But I need some help.
I'm trying to replicate the Bendixking KDI572 DME gauge.
I've done most of it, but it has a function where it displays the last selected Nav device, this is called "HLD" and how to make it work is proving a struggle.
When the gauge is set to the HLD position it displays the last selected Nav signal and this then allows the Nav device to be changed to a different frequency without changing the HLD display, the display needs to continue to show the distance speed and time.
My question is how to capture and hold the HLD frequency without it being changed by the NAV device.
My code below will display the HLD data ok, but its not updating because the L: are only taking a snapshot of the current position when I click the HLD click spot.
Not the worlds smartest code I know.
Regards
Dave
N1 Selected
%((A:NAV1 DMESPEED, knots) 0 <)%{if} --- --- --- %((A:NAV1 DMESPEED, knots) (>L:NAV_NAV1_DMESPEED,knots))%{else}
%((L
%((A:NAV DME:1, nmiles) 999 min 0 max s0)%!5.1f!
%((A:NAV DMESPEED:1, knots) 999 min 0 max s1)%!03d!
%(l0 l1 / 60 *)%!d!%
%((A:NAV DME:1, nmiles) (>L:NAV_DME_1,nmiles))
%((A:NAV DMESPEED:1, knots) (>L:NAV_DMESPEED_1,knots))
%((l0 l1 / 60 *) (>L:NAV_DMETIME_1))
%((A:NAV1 DMESPEED, knots) (>L:NAV_NAV1_DMESPEED,knots))
%{end}
%{end}
HLD Selected
%((L
%((L:NAV_NAV1_DMESPEED,knots) 0 <)%{if} --- --- ---%{else}
%((L:NAV_DME_1,nmiles) 999 min 0 max s4)%!5.1f!
%((L:NAV_DMESPEED_1,knots) 999 min 0 max s5)%!03d!
%(l4 l5 / 60 *)%!d! %{end}%
%{else}
%((L:NAV_NAV2_DMESPEED,knots) 0 <)%{if} --- --- ---%{else}
%((L:NAV_DME_2,nmiles) 999 min 0 max s6)%!5.1f!
%((L:NAV_DMESPEED_2,knots) 999 min 0 max s7)%!03d!
%((l6 l7 / 60 *)%!d! %{end}%
%(0 (>L
Last edited:



