Hi,
I'm using FSUIPC version 4.84 in conjunction with Prepar3D v1.3 (the latest) to try and set the altitude of my aircraft while in slew mode. My IOS has slew capabilites and this is one of the options within the screen.... move the aircraft around, left, right, pitch, roll, yaw, velocities and ofcourse altitude.... I allow a specific altitude entry instead of slewing up and down.
I have code that works perfectly using FSUIPC 3.999s and FS2004.
A pseudo run through:
===========================================
set slew (user button press)
enter altitude (user desired eg 2000ft)
---routine after user has entered ALT---
set pause
convert user entered ft to meters
manipulate whole and fraction into 64bit int (note this works with the FS2004 and FSUIPC build)
set altitude using 0570 8bytes
unset pause
---routine ends---
unset slew (user button press)
===========================================
Again this works fine with FS2004 yet does not with Prepar3D. I use SHIFT + Z + Z and I can see the ALT flash to my desired altidude and the scenery flashes then the aircraft is returned to the ground.
To make things interesting, while slew is set is raise the aircraft off the ground by as little as a few feet (from within Prepar3D using F4) and then the above routine works perfectly?? I'm confused why this would be the case... I have monitored simconnect for Errors, and there were none. I have monitored FSUIPC IPC writes to console out put and there is no difference between the writes that happen when the aircraft is on the ground or elevated a few feet. Yet oddly when the aircraft is slewed a few feet off the ground my routine works yet when it's on the ground it does not.
Any suggestions or advice would be great. If you would like to know more information please ask.
Regards