I have a problem with the altitude. I use a model of Aircraft in Simulink.
It's called the Aerosim blockset, it's free for non-commercial users.
In my model there is a Block called FSInterface that use an S-function called sfunflightsim.dll.
When I start the program in Simulink I can see the aircraft mouving Flight simulator 2004. The problem is that the Altitude drops suddenly of 1 or 2 feets and the image jumps. I don't know if the problem is in this S-function or in the FSUIPC files that I downloaded from the site. I read that I need to change the code from the Source file because the Variable altitude is set in float or double but I Don't Know what is the file that needs to be change and How.
Can you Help me?