Airbuspilot Posted May 25, 2023 Report Posted May 25, 2023 Hello, i need Help writing a Value to the Offset 0x0B7C. I want to fill the Left Main Tank of the SkySim MD11F. After the Start, the Display shows 40488. With this Commant, i initialize the Tank. ipc.writeFLT(0x0B7C, 0.00000). The Display shows 0 as expected. After the Init, i will fill the Tank, so that the Display in the Overhead shows the correct Value. Therefore i issue this Command. ipc.writeFLT(0x0B7C, 57568.5673). The Display then shows 668423. This Value is absolutely wrong. I tried writeSD, writeSW, writeDBL, etc.. But nothing returns a correct Value in the Display. I hope, that someone could help me, to issue the correct Command to fill up the Tank. Any Help is highly appreciated. Thanks a lot in Advance. Greets, Joachim
John Dowson Posted May 25, 2023 Report Posted May 25, 2023 The comment on offset 0x0B7C says: Fuel: left main tank level, % * 128 * 65536 So for a full tank, write 100*128*65536 as a an unsigned int. i.e. ipc.writeUD(0x0B7C, 838860800) John
Airbuspilot Posted May 27, 2023 Author Report Posted May 27, 2023 Hi John, thank you so much for your Help. Joachim
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now