collapse

* Who's Online

  • Dot Guests: 22
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Recent Topics/Posts

Hello from Ohio by salaxi54
[April 22, 2025, 10:49:23 PM]


Wiring the LG Box for BMS by AlbertJ
[April 21, 2025, 03:45:14 AM]


shared memory variables for some instruments by henkie
[April 12, 2025, 03:10:45 PM]

Author Topic: shared memory variables for some instruments  (Read 4823 times)

Offline henkie

  • -=VP Veteran Donor=-
  • General
  • *
  • Join Date: Oct 2009
  • Location: Helmond
  • Posts: 4722
  • Country: nl
  • VP Awards Old Geezer Award: Awarded after 10 years of community service 3000+ posts Award: Awarded for achieving over 3000 posts Most Time Online Award: Awarded to those 30 members with most time on the forum Gold Cup Award: Awarded to someone for a special achievement Gold Medal Award: Awarded for special contributions to the community Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Top Poster Award: for those 30 members with most posts Electronics Guru Award: Awarded to those with special electronics skills
    • Henk's Viperpit developments
    • Buy me a soda
    • Awards
shared memory variables for some instruments
« on: May 06, 2023, 04:27:08 PM »
Maybe I overlooked, after reading so many times I am probably "blind"  :brickwall:
What are the variables to control

- compass indication
- liquid oxygen indication
- cabin pressure indication

all on the right AUX panel

???
Thanks!

Offline lightning

  • -=VP Donor=-
  • General
  • *
  • Join Date: Mar 2007
  • Location:
  • Posts: 2269
  • Country: 00
  • VP Awards Old Geezer Award: Awarded after 10 years of community service Software Guru Award: Awarded to those with special software skills Top Poster Award: for those 30 members with most posts Most Time Online Award: Awarded to those 30 members with most time on the forum 2000+ posts Award: Awarded for achieving over 2000 posts
    • Lightning's Tools GitHub repository
    • Awards
Re: shared memory variables for some instruments
« Reply #1 on: May 06, 2023, 11:52:01 PM »
Compass=yaw
Cabin pressure=cabinAlt
LOX: not in sharedmem

Offline Snoopy

  • General
  • ******
  • Join Date: Jun 2019
  • Location:
  • Posts: 679
  • Country: nl
  • Flying Snoopy Airways
  • VP Awards Veteran Award: Awarded after 5 years of community service
    • Awards
Re: shared memory variables for some instruments
« Reply #2 on: May 07, 2023, 01:53:21 AM »
LOX: not in sharedmem
That would explain why Liquid Oxygen is not included in F4to Serial. Shame though.

I am using F4toSerial for the DED, most of the gauges and LEDs. I only need to read Total Fuel and Compass with an Arduino to power these last two instruments on my Right Aux. In F4toSerial you can only use separate 7-digit blocks for the total fuel display on the Total Fuel Quantity Indicator. I have a very small OLED display. And for the wet compass, I made my own solution based on a hint from an A-10 cockpit. Both options work very nice, if only I could somehow get these two values into an Arduino. But the thought of C-programming and Visual Studio... Even looking at GitHub and forks and those things makes my mind start to slowly melt.  :-\ :sleepyeyed: :-[

Offline henkie

  • -=VP Veteran Donor=-
  • General
  • *
  • Join Date: Oct 2009
  • Location: Helmond
  • Posts: 4722
  • Country: nl
  • VP Awards Old Geezer Award: Awarded after 10 years of community service 3000+ posts Award: Awarded for achieving over 3000 posts Most Time Online Award: Awarded to those 30 members with most time on the forum Gold Cup Award: Awarded to someone for a special achievement Gold Medal Award: Awarded for special contributions to the community Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Top Poster Award: for those 30 members with most posts Electronics Guru Award: Awarded to those with special electronics skills
    • Henk's Viperpit developments
    • Buy me a soda
    • Awards
Re: shared memory variables for some instruments
« Reply #3 on: May 07, 2023, 01:19:54 PM »
@lightning : Thanks!
Cabin Pressure ...  :DOH:
Compass ... yaw ... I had not made that connection  :whistle:
LOX ...  ::)  An just for thát indicator I did a lot of work. Build a separate 115VAC 400 Hz power supply (input 24VDC), and a small stepper motor controller, mounted underneath the right side console. I did manage to get the real LOX indicator working, so I guess, I put the needle at some 4.2 at startup, and leave it there.

Adding a lot to the SharedMemoryTester and my "app", it's about time to see how my pit reacts  :whistle:  :bounce2:

@Snoopy : I also started with zero knowledge of "Windows Programming",  C# and Visual Studio. It is simply learning by doing. However, I am still an amateur. Sometimes, to get things done, I save my work, close Visual Studio, and then start Visual Studio again. I certainly am still not comfortable navigating through all the panes, there are of course more clever ways than close/start again, but it gets the job done  :D

Having done everything "my own way" makes that I have to do the last bits also "my own way"  :reading:

Offline henkie

  • -=VP Veteran Donor=-
  • General
  • *
  • Join Date: Oct 2009
  • Location: Helmond
  • Posts: 4722
  • Country: nl
  • VP Awards Old Geezer Award: Awarded after 10 years of community service 3000+ posts Award: Awarded for achieving over 3000 posts Most Time Online Award: Awarded to those 30 members with most time on the forum Gold Cup Award: Awarded to someone for a special achievement Gold Medal Award: Awarded for special contributions to the community Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Top Poster Award: for those 30 members with most posts Electronics Guru Award: Awarded to those with special electronics skills
    • Henk's Viperpit developments
    • Buy me a soda
    • Awards
Re: shared memory variables for some instruments
« Reply #4 on: March 14, 2025, 03:07:54 PM »
I am slowly going through the process of "run in" of my pit  ::)

Minor "issue"
When I press the MAL & IND LTS button on the TEST panel, the "xmas tree" lights up  :D
On the left eyebrow are two indicators: "TF FAIL" and "OVRD".
In the 3D cockpit both indicators light up, but in my pit only TF FAIL lights up.
That makes sense, because in my code for handlling the "OVRD" bit is the text "TO BE IMPLEMENTED"  :DOH:
I assume that "OVRD" stands for "override", but override from what ???
Can somebody tell me what the indicator is for (not found in the BMS docs  :notes:) and which light bit in shared memory is allocated to this indicator ???

Major "issue"
I am currently up to the "step" START2. The JFS switch is held in the START2 position, and after a few seconds the RUN light comes on. I see the RPM indicator slowly move to 25%. Then you are supposed to move the throttle from minimum position a bit "forward". That does not happen when I move the throttle.
I have a "working" throttle in the Alternative Launcher ("AXIS"), and was able to set CUT-OFF, IDLE and AB.
What I noticed is that maximum AB is approx 75% of the entire slider range. BTW, I have a TUSBA2.
So, in the Alternative Laucher I see the throttle value change when I move the throttle, but in the simulation the throttle does not move at all.
Am I overlooking something essential here?  I am stuck  :brickwall:
« Last Edit: March 14, 2025, 03:16:26 PM by henkie »

Offline Red Dog

  • Administrator
  • General
  • *****
  • Join Date: Mar 2004
  • Location: Brussels
  • Posts: 4009
  • Country: be
  • VP Awards 3000+ posts Award: Awarded for achieving over 3000 posts Gold Medal Award: Awarded for special contributions to the community Outstanding Build Award: Awarded for an outstanding pit build Top Poster Award: for those 30 members with most posts Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Most Time Online Award: Awarded to those 30 members with most time on the forum Old Geezer Award: Awarded after 10 years of community service
    • Buy me some coffee
    • Awards
Re: shared memory variables for some instruments
« Reply #5 on: March 15, 2025, 03:44:59 AM »
If I remember right you have to activate the real throttle behaviour in the F4config? It's one of the options for those of us having real detents an our real throttle config
When that one is not activated you have yo use a keypress declared as idle detent to 'simulate' passing the detent

So 2 possibilities fo you to test
1. locate that option in F4config (I mean the old F4patch) and retry
2. locate the callback for the idle detent, assign it and press it to start the engine when JFS does its job and you want to tell BMS that you advance the throttle past the detent

Obviously option 1 is meant for you.

Bear with me it's been a long time I haven't touched all this so my memory might be slighly off
Have a bandit day - Red Dog
Red Dog flight sim's stuff
Red Dog models
Red Dog PPL
Red Dog Discord: 947914531772964865

Offline Nikolas_A

  • Global Moderator
  • General
  • *****
  • Join Date: Oct 2004
  • Location: Athens, Hellas
  • Posts: 3827
  • Country: gr
  • VP Awards 3000+ posts Award: Awarded for achieving over 3000 posts Top Poster Award: for those 30 members with most posts Most Time Online Award: Awarded to those 30 members with most time on the forum Old Geezer Award: Awarded after 10 years of community service
    • Awards
Re: shared memory variables for some instruments
« Reply #6 on: March 15, 2025, 10:21:12 AM »
I did manage to get the real LOX indicator working, so I guess, I put the needle at some 4.2 at startup, and leave it there.
Or make it slowly decrease the value. With all the work you've done it would be a shame if it didn't move...

Offline FalconDK

  • Col.
  • *****
  • Join Date: Dec 2003
  • Location: Denmark
  • Posts: 146
  • VP Awards Old Geezer Award: Awarded after 10 years of community service
    • Awards
Re: shared memory variables for some instruments
« Reply #7 on: March 16, 2025, 01:09:16 PM »
As per the bible aka https://www.xflight.de/ OVRD is related to the Manual Pitch selection and only for the D models. However, I have some old notes mentioning it is related to the Flt Control digital backup mode, so when this is activated the OVRD indicator will be on. I haven't been able to verify any of this information though.

OVRD is not in the current flightData.h file and the absence makes sense if Martins information is correct.

Offline henkie

  • -=VP Veteran Donor=-
  • General
  • *
  • Join Date: Oct 2009
  • Location: Helmond
  • Posts: 4722
  • Country: nl
  • VP Awards Old Geezer Award: Awarded after 10 years of community service 3000+ posts Award: Awarded for achieving over 3000 posts Most Time Online Award: Awarded to those 30 members with most time on the forum Gold Cup Award: Awarded to someone for a special achievement Gold Medal Award: Awarded for special contributions to the community Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Top Poster Award: for those 30 members with most posts Electronics Guru Award: Awarded to those with special electronics skills
    • Henk's Viperpit developments
    • Buy me a soda
    • Awards
Re: shared memory variables for some instruments
« Reply #8 on: March 16, 2025, 03:50:20 PM »
That is interesting!

When I press the MAL & IND LTS button on the TEST panel, the OVRD indicator in the displayed cockpit lights up.
Can take a picture of it as proof  :D

That leads me to believe OVRD is still present, otherwise how can Falcon4 else light up that indicator ???

Offline FalconDK

  • Col.
  • *****
  • Join Date: Dec 2003
  • Location: Denmark
  • Posts: 146
  • VP Awards Old Geezer Award: Awarded after 10 years of community service
    • Awards
Re: shared memory variables for some instruments
« Reply #9 on: March 18, 2025, 06:05:41 PM »
I managed to locate information about the OVRD light after finding a main flight manual it is possible to search in, https://info.publicintelligence.net/HAF-F16.pdf. Previously I only had a scanned version. Below are extracts from the manual and the OVRD light is indeed related to the D model aircraft and not to the manual pitch selection. You can find the related sections in the manual by searching 'ovrd' :)

NOSEWHEEL STEERING (NWS) SYSTEM
Either cockpit can control the NWS. Control is
accomplished by means of an NWS control button/
indicator located in both cockpits just aft of the stick.
Depressing the button/indicator transfers control of
the NWS; the indicator illuminates green in the
cockpit which has control. Control then remains in
that cockpit even if the engine is shut down and/or
electrical power is removed. NWS can only be
engaged and operated from the cockpit which has
control. When NWS is selected, the NWS light
illuminates green in both cockpits. The aft stick
paddle switch allows immediate override of the
forward cockpit if the STICK CONTROL switch on
the TEST switch panel is in AFT; the NWS control
button/indicator in the aft cockpit and OVRD light
illuminates. The front cockpit paddle switch cannot
override the aft cockpit regardless of the position of
the STICK CONTROL switch. With the AIR
REFUEL switch in OPEN, NWS can be engaged or
disengaged  from either cockpit without using the
paddle switch regardless of which cockpit has control.

STICK CONTROL OPERATION
With the STICK CONTROL switch in FWD, the stick
indicator  displays  the  word FWD.  Depressing  the
forward  cockpit  paddle  switch  locks  out  the  rear
cockpit  stick,  rudder,  and  MPO  commands.  The
OVRD light in both cockpits illuminates indicating
override  is  activated.  Depressing  the  rear  cockpit
paddle switch has no effect on the forward cockpit
controls.
With the STICK CONTROL switch in AFT, the stick
indicator  displays  the  word  AFT.  Depressing  the
rear  cockpit  paddle  switch,  PX III   with  the  ASIU
switch  OFF  or  the ASIU  STICK CONT  switch  in
FLIGHT, locks out the forward cockpit stick, rudder,
and MPO commands and transfers control of NWS to
the rear cockpit. The OVRD  light in both cockpits
illuminates,  indicating  override  is  activated.  De
pressing the forward cockpit paddle switch has no
effect on the rear cockpit controls.

Stick OVRD Lights D
Refer to figure 1-90. The stick OVRD lights, located
on the forward and rear cockpit instrument panels,
illuminate when the paddle switch is used to take
control.

Offline henkie

  • -=VP Veteran Donor=-
  • General
  • *
  • Join Date: Oct 2009
  • Location: Helmond
  • Posts: 4722
  • Country: nl
  • VP Awards Old Geezer Award: Awarded after 10 years of community service 3000+ posts Award: Awarded for achieving over 3000 posts Most Time Online Award: Awarded to those 30 members with most time on the forum Gold Cup Award: Awarded to someone for a special achievement Gold Medal Award: Awarded for special contributions to the community Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Top Poster Award: for those 30 members with most posts Electronics Guru Award: Awarded to those with special electronics skills
    • Henk's Viperpit developments
    • Buy me a soda
    • Awards
Re: shared memory variables for some instruments
« Reply #10 on: March 19, 2025, 04:54:57 PM »
Excellent research work @FalconDK  :thumbsup:

So, would it be a "bug" in Falcon4 that with the MAL & IND LTS button on the TEST panel, OVRD on the left eyebrow lights up ???  If there is no bit in "flight data.h" for OVRD, how does Falcon4 light up the indicator?

For my pit, it does not matter / is not relevant, but I have the indicator wired, so I would love to see it light up when the MAL & IND LTS button is pressed  :whistle:

Offline FalconDK

  • Col.
  • *****
  • Join Date: Dec 2003
  • Location: Denmark
  • Posts: 146
  • VP Awards Old Geezer Award: Awarded after 10 years of community service
    • Awards
Re: shared memory variables for some instruments
« Reply #11 on: March 19, 2025, 05:19:46 PM »
For me it seems like a bug it lights up in Falcon 4. We will need the BMS developers to chime in how they have programmed it.

If you do your own code it should be possible to add the OVRD light to the button press function/commands directly and not have it rely on a shared memory variable.

Offline Nigel

  • Global Moderator
  • General
  • *****
  • Join Date: Feb 2008
  • Location: Franklin, TN
  • Posts: 5155
  • Country: us
  • VP Awards Old Geezer Award: Awarded after 10 years of community service Gold Cup Award: Awarded to someone for a special achievement Gold Medal Award: Awarded for special contributions to the community Outstanding Build Award: Awarded for an outstanding pit build Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Top Poster Award: for those 30 members with most posts Most Time Online Award: Awarded to those 30 members with most time on the forum 3000+ posts Award: Awarded for achieving over 3000 posts
    • Awards
Re: shared memory variables for some instruments
« Reply #12 on: April 12, 2025, 06:05:01 AM »
Henk,
As read above, unless you are building a two seat D model or an MLU, you should not have an OVRD indicator. If you have one, its probably because a lot of MLU conversion leftover parts were floating around and available. Look on xflight .de and read up on the eyebrow indicators and also look at the TEST panel and ZEROIZE pics. The D model has an extra switch called "STICK CONTROL" which allows the GIB to fly the jet. Also there is the NWS button where the Zeroize/Voice Inhibit Panel is (look on xflight) and it activates NWS on the ground.. In my old trainer, I had acquired all the panels for a D model so I built mine as the front seat. I hardwired it so that if you activated the proper switches, the OVRD would light but it's all static. There are no D models in SHMEM for BMS or DCS so the OVRD lamp shouldnt come on when testing MAL and IND unless you hardwire it.
Oh, and I also had a MISC panel with an OVRD indicator and it is also obsolete except for MLU which has it but its not used. So basically forget it's there if possible but with the amount of OCD all us piutbuilders have, I doubt thats possible.

Offline henkie

  • -=VP Veteran Donor=-
  • General
  • *
  • Join Date: Oct 2009
  • Location: Helmond
  • Posts: 4722
  • Country: nl
  • VP Awards Old Geezer Award: Awarded after 10 years of community service 3000+ posts Award: Awarded for achieving over 3000 posts Most Time Online Award: Awarded to those 30 members with most time on the forum Gold Cup Award: Awarded to someone for a special achievement Gold Medal Award: Awarded for special contributions to the community Silver Heart Award: Awarded to those showing a real heart for the community and/or it's cause Top Poster Award: for those 30 members with most posts Electronics Guru Award: Awarded to those with special electronics skills
    • Henk's Viperpit developments
    • Buy me a soda
    • Awards
Re: shared memory variables for some instruments
« Reply #13 on: April 12, 2025, 03:10:45 PM »
 :D  @Nigel
The list of things to do is still long enough.
But OVRD is added at the bottom.
When the MAL & IND LTS button on the TEST panel is pressed, my own software "senses" that and makes sure that, besides the workz of BMS, OVRD is also lit. I did not wire it just for nothing  :whistle:

 

SimplePortal 2.3.5 © 2008-2012, SimplePortal