EGT & CHT values? (Baron and Duke)
-
Funny you should ask it in that specific way. Yes, those values are available in the Duke, but I recall having to add them, since they were not visible in the Baron/Bonanza. I just looked at the code quickly, and I think it should be easy to add this yourself if you want to take a shot at it.
In EDM760.js, search for "this.doTempCalculations();" and move that line up to right after "super.Update();". Then, add another line directly after it, "this.broadcastTemperatures();". Lastly, add the following block of code directly before "dotLabelBuilder(cylinderIndex){".
broadcastTemperatures(){ for(let engine=0; engine<this.cylinderEGTs.length; engine++){ for(let cylinder=0; cylinder<this.cylinderEGTs[0].length; cylinder++){ SimVar.SetSimVarValue(`L:BKSQ_EGT_${engine+1}_CYL${cylinder+1}`, "Fahrenheit", this.cylinderEGTs[engine][cylinder]); SimVar.SetSimVarValue(`L:BKSQ_CHT_${engine+1}_CYL${cylinder+1}`, "Fahrenheit", this.cylinderCHTs[engine][cylinder]); } } }
The variables for each individual cylinder will then be like...
L:BKSQ_EGT_1_CYL1 (EGT, left engine, cylinder 1)
L:BKSQ_CHT_2_CYL5 (CHT, right engine, cylinder 5)
-
Wow... Thank you very much!!!
I already was looking in the EDM760.js for clues, but what you just explained was beyond my knowledge.
Will do that... and just learned alot. 😀I am currently coding a garmin style twin engine EDM for the SPAD.neXt Logitech FIPs.
Looking good so far, but just as I wanted to get the cylinder data, I realized, they are not available.
The only plane that had these kind of vairiables was the A2A C250, which also comes with a detailed engine simulation like your Dukes, but I think you going to raise the bar a bit over that. Happy to read, these values will be available out of the box so I can provide my EDM for other without altering the 760s file.
I can't wait to get my hands on the piston Duke... I love complex twins and the Duke looks like the new crown taker for the GA aircrafts. -
Yay! Thank you for letting me know. I'm so glad I could do that for you today. Sometimes I wonder if anyone implements the features that I offer in code like this. I've rarely seen other developers just post blocks of code online for people to implement their own features, but I am always happy to do it. Unfortunately, sharing JavaScript files is difficult, because I can't upload arbitrary file types to the forums, and many modern platforms (and now ever browsers!) will prevent you from sharing js files for security reasons.
I'll make those changes on my end too, so they will be included in the next updates for the Baron and Bonanza. Thank you!
-
I love the amount of support and connection to the community you provide. There are not much out there on this level. It also makes your already very compelling products even more attractive, because it all adds up to the package of the user experience. And I did not even mentioned the excellent user manuals. Worth every penny and even more…
Thank you for your hard work… Our thousands of dollars home cockpits would be worthless without the proper planes to fly. 😍