Search found 58 matches
- Mon Aug 27, 2018 6:42 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] Can I read Central Gravity?
- Replies: 1
- Views: 7745
Re: Can I read Central Gravity?
I know now - the sim var is "CG PERCENT "
- Mon Aug 27, 2018 1:35 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] Can I read Central Gravity?
- Replies: 1
- Views: 7745
[RESOLVED] Can I read Central Gravity?
As titled. I can't find a sim var reflecting central gravity. Can I read it? thanks.
- Tue May 29, 2018 2:31 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] How to read the frame rate using simconnect?
- Replies: 2
- Views: 11958
Re: How to read the frame rate using simconnect?
Hi adiemus,
Thanks. And I also found an SDK example called Managed System Event which is very helpful.
Jeff
Thanks. And I also found an SDK example called Managed System Event which is very helpful.
Jeff
- Fri May 25, 2018 9:49 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] How to read the frame rate using simconnect?
- Replies: 2
- Views: 11958
[RESOLVED] How to read the frame rate using simconnect?
Hi, Does SimConnect provide a var for users to read the frame rate of P3D? In var list I cannot find it. I only found a structure struct SIMCONNECT_RECV_EVENT_FRAME : public SIMCONNECT_RECV_EVENT { float fFrameRate; float fSimSpeed; }; So I tried to read SIMCONNECT_RECV_EVENT_FRAME.fFrameRate as oth...
- Mon May 14, 2018 5:12 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] simconnect event KEY_STEERING_SET can't be assigned with a negative value
- Replies: 3
- Views: 11698
Re: simconnect event KEY_STEERING_SET can't be assigned with a negative value
Hi Rob and Jonathan,
yes you are right. a negative "value" can be converted to "4294967296-value" and for example -1 is 4294967295 which is 0xffffffff.
yes you are right. a negative "value" can be converted to "4294967296-value" and for example -1 is 4294967295 which is 0xffffffff.
- Sat Apr 28, 2018 1:22 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] simconnect event KEY_STEERING_SET can't be assigned with a negative value
- Replies: 3
- Views: 11698
[RESOLVED] simconnect event KEY_STEERING_SET can't be assigned with a negative value
Hi, On the web, it says for the event KEY_STEERING_SET , sets the value of the nose wheel steering position. Zero is straight ahead (-16383, far left +16383, far right). But the definition of the API public void TransmitClientEvent(uint ObjectID, Enum EventID, uint dwData, Enum GroupID, SIMCONNECT_E...
- Sat Apr 28, 2018 1:14 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] simconnect disconnected and can't recover after a few minutes
- Replies: 2
- Views: 9290
Re: simconnect disconnected and can't recover after a few minutes
Hi Rob,
I got this when I use another thread for connection. Then I used the same thread but got a AccessViolationException:"Attempted to read or write protected memory" and I deleted 'simconnect.dispose() & simconnect=null' and it seemed to be fixed.
Kind regards,
Jeff
I got this when I use another thread for connection. Then I used the same thread but got a AccessViolationException:"Attempted to read or write protected memory" and I deleted 'simconnect.dispose() & simconnect=null' and it seemed to be fixed.
Kind regards,
Jeff
- Thu Apr 19, 2018 1:14 am
- Forum: Software Development Kit (SDK) Questions
- Topic: [RESOLVED] simconnect disconnected and can't recover after a few minutes
- Replies: 2
- Views: 9290
[RESOLVED] simconnect disconnected and can't recover after a few minutes
In my C# program, I remotely communicate with P3D (server and client in different PCs), I connect to SimConnect automatically and recover automatically if there are connection problems. For the first few minutes it works fine, but then it can't recover. In the code it is still trying to recover but ...
- Thu Mar 01, 2018 8:35 am
- Forum: Software Development Kit (SDK) Questions
- Topic: How to get the METAR string in C#?
- Replies: 2
- Views: 8892
Re: How to get the METAR string in C#?
Hi maxaero, thanks you are right.
- Mon Feb 26, 2018 7:34 am
- Forum: Software Development Kit (SDK) Questions
- Topic: How to get the METAR string in C#?
- Replies: 2
- Views: 8892
How to get the METAR string in C#?
Hi, I need to set the ambient temperature and wind. I have searched for sim vars and found the weather and wind info can be read but not settable. The only way I can imagine is to set the METAR. Also, I found the API I need to read METAR data from is WeatherRequestObservationAtStation , but I have t...
- Mon Jan 22, 2018 3:13 am
- Forum: Software Development Kit (SDK) Questions
- Topic: volume and flight mode setting
- Replies: 0
- Views: 5541
volume and flight mode setting
Hello,
1. Can SimConnect set the volume in P3D?
2. In P3D, Options-Controls-Realism-CRASHES AND DAMAGES can set the flight mode (if the plane could crash). Is there a way to set/unset it using SimConnect?
Thanks.
1. Can SimConnect set the volume in P3D?
2. In P3D, Options-Controls-Realism-CRASHES AND DAMAGES can set the flight mode (if the plane could crash). Is there a way to set/unset it using SimConnect?
Thanks.
- Sat Jan 20, 2018 10:50 am
- Forum: Software Development Kit (SDK) Questions
- Topic: aircraft drops down after setting the altitude
- Replies: 2
- Views: 8290
Re: aircraft drops down after setting the altitude
Hello Rob, The plane in the sky will drop onto the surface of the ground/sea depending on the scenary. I am doing a "repositioning" for the plane - say 3 nautical miles before landing. Before setting the altitude, I simply do 3 events to pause the game, set the plane's attitude and reload ...
- Thu Jan 18, 2018 8:45 am
- Forum: Software Development Kit (SDK) Questions
- Topic: aircraft drops down after setting the altitude
- Replies: 2
- Views: 8290
aircraft drops down after setting the altitude
Hi, I am using C# to set the airplane altitude. sim.SetDataOnSimObject(DEFINITIONS.Altitude, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, Init.Altitude); In some "pause on" situations it will fall down with unknown reasons and that often make the plane crash when...
- Fri Dec 15, 2017 1:38 am
- Forum: Software Development Kit (SDK) Questions
- Topic: An event setting and a data writing problem
- Replies: 3
- Views: 9682
Re: An event setting and a data writing problem
Hello Mike and WarpD, SIMCONNECT_DATATYPE_INT32 is also not working. It causes an exception. As for the speed, I don't know if it is a correct description but I cannot do backward movement - a negative value cannot be assigned to the event parameter and the value added by int.MaxValue also doesn't w...
- Thu Dec 14, 2017 10:02 am
- Forum: Software Development Kit (SDK) Questions
- Topic: An event setting and a data writing problem
- Replies: 3
- Views: 9682
An event setting and a data writing problem
Hi, 1.I need to set the speed when I do the push back. But I can't use TransmitClientEvent function to set "KEY_TUG_SPEED" as a negative value, say -20 since it is an "uint" type value, nor does (uint.MaxValue-20) work - if set to (uint.MaxValue-20), the aircraft nose will rise a...