Jump to content
The simFlight Network Forums

ACyLum

Members
  • Posts

    5
  • Joined

  • Last visited

About ACyLum

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://

ACyLum's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Peter I'm programming an external program to handle LLAPBH and slaving FS to that data. In the code snippet, I left out the other instructions for brevity... Currently, I am not using a timer (sleep()) or anything to delay the main loop for another process. I can try that to see if I can normalize the frame rate. Do you have a suggestion for a sleep delay value? I'm currently frame locked at 20FPS in FS. So far the effect only happens when I do a read operation from the throttle offset (actually from any of the offsets) things are fine if I just Write to an offset(so far doing the forcing of pitch/alt/etc,.. seems to work fine and at the right frame rate). I was also wondering if using the interface for Modules would be better - does this have an effect? Thank you for your time.
  2. Hello I seem to have a strange problem with frame rate slow down using FSUIPC. Everything seems to run fine frame rate-wise until I started doing a read from 088c for the throttle. Once I have this instruction in the loop, I notice a drop of 5 fps. However, this is the weird part, if I move the mouse around, then the frame rate jumps back up to normal. Here is my program loop: ... ... FSUIPC_Write(0x0578, 4, &pitch, &dwResult); FSUIPC_Read(0x088c, 2, &throttle, &dwResult); FSUIPC_Process(&dwResult); ... The loop is simple, so I'm not sure what could be the problem. Any ideas about what it could be? Thanks for your help
  3. I've been trying to get an external program to detect when the ` key is pressed during a FS2004 session using FSUIPC. Currently, when I hit the ` key, the external program doesn't detect this key press. Here's how my code is set-up in visual C: unsigned long hotkey; ... ... ... Read 0x320c to find next open hotkeyslot - in this case, it is 0x3210 hotkey = 0x000000DF; FSUIPC_Write(0x03210, 4, &hotkey, &dwResult); FSUIPC_Process(&dwResult); .... .... .... In my main program loop char tempchr; FSUIPC_Read(0x3213, 1, &tempchr, &dwResult); Currently, when I press the ` key tempchr always reads zero. Did I missing something in my code? Thank you for your help.
  4. Thanks for the help....I can get the heading to work now - One thing I'm not sure about is the calculation to degrees - I've used your calculation (X * 360/ (65536*65536)) - for a unsigned int heading value of 905415551, the resulting degree is 75.89 (I checked this against FSInterrogate which gives the same number) However, when I look at the heading panel in FS2004, it reads 62 degrees. Do you know why there is a difference? Thank you for your time
  5. Hello Peter - I'm a newbie FSIPCU programmer and was hoping that you can help me with a simple sample. I would like to read, printf the value, then write the value to the airplane HEADING offset at 0x580. I'm currently looking through the sample UIPCHello.c code. I guess I'm just looking for a small code snippet that shows the pvoid set-up, then the FSUIPC_ code to do this - this small bit would help me get started.. Thank you for your time.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.