September 1, 201312 yr Commercial Member Anyone know, using Simconnect, how to move the user's airplane around (ie., pushback). I want to improve FS2Crew's pushback utility which relies on the stock FSX pushback mechanism. (Not trying to re-invent AES or GSX... just want to make my pushback better for my users) B. York FS2Crew Web Site / FS2Crew Facebook Page / FS2Crew Discord
September 4, 201312 yr Commercial Member There are a couple of ways. You could write in new coords or send data to the VELOCITY BODY Z variable (the easiest way). Sending data to the heading variable would also allow you to turn the aircraft. The set data example in the SDK would be a good place to start. That and the set throttle sample. You would add some definitions for the velocity vars (here is an example for the Y and Z body velocity) hr = SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_VELOCITY,"VELOCITY BODY Y", "Feet per second"); hr = SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_ACCEL,"VELOCITY BODY Z", "Feet per second"); And then when needed you could setdataonsimobject to set the velocity with code like this: bc.velocityy = -30.0f; hr = SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_VELOCITY, request[weapon][1], 0, 0, sizeof(bc), &bc); www.antsairplanes.com
January 6, 201412 yr Do you have the example for doing the pushback? I am needing such functionality as well. E.G.Freelance IT Consultant www.PanamaVibes.com | www.lordofwingsPTY.com | www.coralys.com @aviationweb
Create an account or sign in to comment