Replies: 3 comments 14 replies
-
Hi Paul,
I'm sorry I have no idea what this has to do with your form disappearing or what you mean by "threading issues." Perhaps if I could see some code...?
Sorry, but at risk of repeating what is already written, have you seen the documentation?
I can't tell what it's showing you there...
Access in terms of what? Which properties? The console example logs
Based on the To correlate with your "SimConnectPlus," you can then retrieve your
If you mean the
I'm not sure what you mean by "same object" here at all... as in the same instance of an object you created and passed to
I suppose "easy to read" is relative, but that's essentially exactly what you get back in Coming back to your "SimConnectPlus" project, I think what you're asking in the last few quotes is to allow you to do away with keeping track of your own Or maybe I misunderstand completely... :-)
I'm not sure if this is going to help or confuse at this point, but I have what I consider a very practical C# program using If you care to peruse, I think you may find the
Do you have that first part working, manipulating graphics? Eg. with dummy data? Before involving WC or SC at all, I mean.
Please share actual code you've tried so far. I think this will be a more efficient way to approach whatever difficulties you're experiencing and perhaps find more practical solutions WC could provide. Thanks, |
Beta Was this translation helpful? Give feedback.
-
A USB device? For simming? And it needs a GUI? That's pretty much one of my specialties... 😉 |
Beta Was this translation helpful? Give feedback.
-
I am still spending time on my wrapper for WASimCommander. Today I added a SimConnectEventReceiver to my SimCom wrapper which connects directly to SimConnect. SimCom registers those "variables" of type K with the receiver and when the event occurs the SimCom.OnDataChanged is called in exactly the same way as with Sim Variables. I managed to get SimConnect to work without a window handle as per your instructions. Thanks for that. Quite pleased with being able to do this: GearPos = simCom.getVariable("(A:GEAR LEFT POSITION,number) (A:GEAR RIGHT POSITION,number) + (A:GEAR CENTER POSITION,number) +",25, 0.2); And just monitor the one value, (I know. We have 1 2 dataRequest = new DataRequest(
requestId: definitionIndex,
resultType: CalcResultType.Double,
calculatorCode: simVal.FullName,
valueSize: (uint)WaSim_ValueTypes.FLOAT,
period: updatePeriod,
interval: Math.Max(interval, 25),
deltaEpsilon: 0.0f
); What is the reason for this? |
Beta Was this translation helpful? Give feedback.
-
I am trying to write a simple test app using C# WPF where I want to receive data changes for "AUTOPILOT HEADING LOCK DIR" and "HEADING INDICATOR"
I spent almost a week trying to write my test app and I am getting nowhere. I trip up on so many issues that are not answered by the sample app.
1 - How can I have an arbitrary number of requestID's The example only defines an enum at compile time. When I try to pass a uint my wpf form disappears. Are there some threading issues?
2 - What is the difference between a DataRequest and DataRequestRecord. In particular the latter confuses me because the debugger shows
yet I can not access any of those properties.
3 - How do I reconcile between
client.saveDataRequest(new DataRequest(...
and what I receive back in theDataSubscriptionHandler
?Wishlist
The C# implementation of WASimCommander should be less like C++ and instead be more oriented towards meeting the needs of developers who want to communicate with MSFS.
I wish the WASim C# wrapper would deal with the weird enum thing for the request identifiers. The trick I pull in my simconnectplus wrapper doesn't seem to work here. I would also like to see a single object representing a variable. In other words the object I create and pass into saveDataRequest should be the same object that I get back in the DataSubscriptionHandler with an easy to read value property.
I really wanted to write a simple C# WPF sample app manipulating some graphics in WPF using WASimCommander and make it available to be included with WASimCommander SDK but I am unable to do it.
I need help. I have an application to write but I am sorry to say WASimCommander is only adding to my problems at the moment.
Beta Was this translation helpful? Give feedback.
All reactions