Hello,
I am trying to track the C172's throttle percentage in Prepar3d by using some SimConnect commands. In short, the program requests data every second from the Prepar3D server about the throttle percentage of the airplane. I am using the AddToDataDefinition with parameters "GENERAL ENG THROTTLE LEVER POSITION:1" and "Percent over 100" . This program works for all of the default airplanes, but not for the A2A C172R add-on plane. The C172R model yields a few random number when the engine is off. When the engine is on, it seems to spit out rather spontaneous numbers, each one different than the number from the previous second, rather than the actual throttle's percent.
Please let me know if you have any suspicions as to what might be causing this.
So far responses have been quick, thorough, and helpful!
Appreciate any help!
Prepar3D Tracking Throttle Percent
- Killratio
- A2A Spitfire Crew Chief
- Posts: 5785
- Joined: 29 Jul 2008, 23:41
- Location: The South West of the large island off the north coast of Tasmania
- Contact:
Re: Prepar3D Tracking Throttle Percent
That is because Accusim does not use the standard FSX/P3D offsets for most things. You need the Offset (LVAR) listings here: viewtopic.php?f=108&t=40389
This is the throttle LVAR (L:Throttle1Position,percent) - throttle lever (range: 0 – 100)
This is the throttle LVAR (L:Throttle1Position,percent) - throttle lever (range: 0 – 100)
Re: Prepar3D Tracking Throttle Percent
Hi,
I tried replacing the throttle LVAR in the code_s.xml file, (L:Throttle1Value,number) with the one you mentioned to me, (L:Throttle1Position,percent), I tried putting the corresponding values in the AddToData function
Is this the right approach?
If so, what parameter would I put into the SimConnecAddToDataDefinition() function instead of "GENERAL ENG THROTTLE LEVER POSITION:1" ?
If not, how would I setup the utilization of this LVAR?
Thanks for any help!
I tried replacing the throttle LVAR in the code_s.xml file, (L:Throttle1Value,number) with the one you mentioned to me, (L:Throttle1Position,percent), I tried putting the corresponding values in the AddToData function
Is this the right approach?
If so, what parameter would I put into the SimConnecAddToDataDefinition() function instead of "GENERAL ENG THROTTLE LEVER POSITION:1" ?
If not, how would I setup the utilization of this LVAR?
Thanks for any help!
Who is online
Users browsing this forum: No registered users and 35 guests