Hello everyone,
I'm using the node.js module found here and have managed to get extremely far into my project with the whole UI having been made (and looking really good IMO) and the backend systems in place.
It was time for me to start working on getting the software to start interacting with FSUIPC so I managed to get the whole
obj.add("blah", 0x0000, blah, blah) stuff working (as seen on the project page) and it reads everything correctly and all was going great.
UNTIL
I started needing to write data to the simulator. I've been looking for hours on how to get this to work and I'm genuinely terrified by the idea that it simply is not possible.
For my testing example, I'm trying to set the parking brake by doing:
...
obj.add('BRAKES', 0x0BC8, fsuipc.Type.Int16);
return obj.process();
})
.then((result) => {
console.log(result["BRAKES"]); // Returns 0 meaning brakes are off
result["BRAKES"] = 32768;
console.log(result["BRAKES"]); // Returns 32768 meaning brakes are activated.
...
The problem is that although the result states that the value for brakes is 32768, the simulator doesn't seem to have been fed that information.
Please please please tell me that I'm being silly and have just misread something because if it's an issue with the npm package I'm using then the whole project is toast ðŸ˜
Hope someone can help me out here,
- Tinos
Full urls to npm package:
https://github.com/koesie10/fsuipc-node
https://www.npmjs.com/package/fsuipc