Uploaded by Ahmed Hendawii

Control Unit PS4

advertisement
Control Unit
Using PS4 Controller
Emulator ds4:
DS4Windows is a portable program that allows you to get the best experience
while using a DualShock 4 on your PC. By emulating a Xbox 360 controller.
MATLAB CSharp api code to receive data from ps4 emulated controller using
SharpDX which open-source managed .NET wrapper of the DirectX API
Microsoft DirectX graphics provides a set of APIs that you can use to create
games and other high-performance multimedia apps. DirectX graphics includes
support for high-performance 2-D and 3-D graphics.
XInput API to interact with the Xbox 360 Controller when it is connected to a
Windows computer.
CSharp api Code
SharpDX.Xinput.State
State = myController.GetState();
Gamepad Structure
16 Bit integer
containing states
of 13 buttons (3
reserved bits)
Left and Right
Trigger Range
-> [0 - 255]
Thumb Range
-> [-32768 - 32768]
Button Parsing
MQTT Protocol : MQTT is used for messaging and data exchange between IoT and
industrial IoT (IIoT) devices, such as embedded devices, sensors, industrial PLCs,
etc. The protocol is event driven and connects devices using the publish /subscribe
(Pub/Sub) pattern.
Generating the Protocol
Used to send data from MATLAB code to Arduino
Download