I was asked to do an ESP 8266+MPU6050 gyroscope “controller” for a simulator by my superiors.
The basics of said controller are basically done, all I need at the moment is a way to both communicate the values of the gyroscope with UE5.4 and also “separate” said values so that I can separately call them so that I can move my mouse with the board.
I’m searching for a while now and I haven’t found any decent UDP communications plugin that would allow me to do that (heard that UE4duino is quite decent but it’s not working on my project due to it being incompatible with UE5., and it’s “spiritual successor”, SerialCOM isn’t quite working either). Anyone has any suggestions, and as a bonus, knows an easy way to translate the values from the MPU to cursor movement?
If your sensor data is coming from a serial port, there is no need to pass them through UDP, serial ports are a very old interface, there are a lot of C++ code for manipulating serial ports online, you can just find one and integrate it into your plugin and then report the sensor data through events.
Regarding the mouse cursor, if you have the OS mouse cursor hidden then that cursor is just a normal actor that uses coordinates that projecting screen coordinates to world space coordinates in the UE viewport, you just need to update the actor’s position based on the sensor data…
The thing is, I was asked to do it in a “hybrid” way, with both the sensor and a laser pointed at a camera, even with this difference it’ll still be applicable to use that?
Also, the mouse I’m using at the moment is just the hardware mouse (shown) but with a decal on it to make it a ironsight. Didn’t know there was a way to make a “fake mouse”