Jump to content
The simFlight Network Forums

Brenchen

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Brenchen

  1. Quickly just answered my own question. I shut everything down and did a clean restart of the sim and FSUIPC, it works now.
  2. Hi John, I've recently installed a registered version of FSUIPC7 running 7.2.13 at the moment. I'm trying to work with HVARs but noticed the only item in the WASM menu that is enabled is "Enable/Disable". I went back to previous posts and tried loading the aircraft up all the way to "Ready To Fly", and tried placing files into the community folder manually etc., still it didn't make any difference. What am I missing? Thanks Brendan
  3. Sorry Pete, I think I'm really not getting my question across. Basically what I wanted to ask was, for example the Pitot-Heat switch. I understand (in C++): - DWORD dwOffset: 0x029C (hex offsets as per table) - DWORD dwSize: 1 (Size in Bytes as per table) - void *pSrce: chOurKey (from your example "static char chOurKey[] = "IKB3BI67TCHE"; // As obtained from Pete Dowson") - DWORD *pdwResult: &dwResult (defined as 'DWORD dwResult' in the header) The lines of code I used to activate the Pitot Heat are: FSUIPC_Write(0x290C, 1, chOurKey, &dwResult); FSUIPC_Process(&dwResult); The result will only get me to turn ON the Pitot-Heat. Now as per 'Use' column of the table says "Pitot Heat switch (0=off, 1=on)", what is the exact lines of code (using my variables names) that I need to type to get the Pitot-Heat switch to turn OFF? Regards, Brendan
  4. Pete, I've read through your documentation, and also played around with it, but unfortunately I still can't seemed to get that simple function working... All I'm trying to understand is how your 'bits' work. Simple example 0x0262 - Pausing/Unpausing of the sim. When you said 1 is pause, 0 is unpause, I can't seemed to find the relationship between them. What I've done was converting the 262 hex to bin, and saw the last 2 bits were xxx....xx10, and I tried the 0x0262, default is unpausing the sim. So how does the 'Use' fit into this context? If we talk about the lights example, I can't understand how the 10 bits fit into the context of either 0x0D0C (LIGHTS) or even just 0x0280 (NAV), again I didn't quite grasp the offset and how the offset works. Forgive me ignorance questions, I have bit of trouble comprehending text. Regards, Brendan
  5. Thanks for the reply Pete, I do understand some basic bitwise ops (previously done it with asm's), but I'm only a beginner at C/C++ so it will take some figuring out for me. Is it the doc called 'FSUIPC4 Offsets Status.pdf' file? I thought it was written for FSUIPC4 (FSX)? Regards Brendan
  6. Hi all, Looking through the FSI parameters, there is a usage one in particular I don't quite understand. For example, I was looking at 0x0D0C for Lights, and in usage there is 1=Nav, 2=Bcn, 4=Land etc... I would suspect there are some use for them somewhere but I dont know how to include them in my code. Also now if I just look at 0x0D0C, I can turn ON the light, but how do I code it so it turns OFF? Just a note, I'm programming in C++. Thanks
  7. Hi all, I'm just trying to play around and get a basic understanding of this SDK and I've ran into a problem that I cannot solve. As the subject suggests, when I tried to connect using FSUIPC_Open function, error 10 came up. During the first fair few times everything works until a certain point, this message came up and I cannot get it to work again. I'm using Qt to write this in and my code is as below: #include "mainwindow.h" #include "ui_mainwindow.h" #include "FSUIPC_User.h" #include #include #include #include #include #include #include #include static char chOurKey[] = "IKB3BI67TCHE"; // As obtained from Pete Dowson MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)//, ui(new Ui::MainWindow) { setupUi(this); tEngRPM = new QTimer(this); connect(tEngRPM, SIGNAL(timeout()), this, SLOT(UpdateRpmReading())); Initialisation_Function(); } void MainWindow::on_Quit_clicked() { FSUIPC_Close(); close(); } void MainWindow::on_btnFOpen_clicked() { if (FSUIPC_Open(SIM_ANY, &dwResult)) { FSUIPC_Process(&dwResult); tEngRPM->start(200); FSUIPC_Read(0x08C8, sizeof(unsigned short), &scalerRPM, &dwResult); FSUIPC_Process(&dwResult); } FSDebugOut->display((int)dwResult); } void MainWindow::on_btnKillEng_clicked() { FSUIPC_Write(0x0B6B, sizeof(unsigned char), chOurKey, &dwResult); FSUIPC_Process(&dwResult); FSDebugOut->display((int)dwResult); } void MainWindow::on_btnLights_clicked() { FSUIPC_Write(0x0D0C, sizeof(short), chOurKey, &dwResult); FSUIPC_Process(&dwResult); } void MainWindow::UpdateRpmReading() { FSUIPC_Read(0x0930, sizeof(short), &RPMval, &dwResult); FSUIPC_Process(&dwResult); dispRPM->display((int)((RPMval*scalerRPM)/65536)); } void MainWindow::Initialisation_Function() { dispRPM->display(0); FSDebugOut->display(0); } Any help would be much appreciated. Thanks Brendan
×
×
  • 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.