Power_Broker
Active member
Also, I've been starting to get serious about learning how to develop a UAV autopilot. To help do this, I wan't to use the game War Thunder (as mentioned in post 1). Basically, I want to use War Thunder as a plane simulator with the "plane" being controlled by an Arduino running autopilot control code. This way, I can rapidly develop autopilot algorithms without worrying about crashing my plane
To start things off, I've written a Python module that will get plane telemetry "real-time" during the virtual plane's flight. Here is a link to the Python module.
Next, I wrote a Python script that imported said module, queries for plane telemetry, logs the telemetry data, then reports the data to the Arduino running the Autopilot for feedback. Here is a link to the Python script.
Lastly, I need to write the Arduino code to accept the telemetry feedback, compute control outputs, and then feed those outputs to War Thunder as a "HID joystick" device. As part of the Arduino code, I'm in the process of developing a custom PID library. Here is a link to the PID library.
To start things off, I've written a Python module that will get plane telemetry "real-time" during the virtual plane's flight. Here is a link to the Python module.
Next, I wrote a Python script that imported said module, queries for plane telemetry, logs the telemetry data, then reports the data to the Arduino running the Autopilot for feedback. Here is a link to the Python script.
Lastly, I need to write the Arduino code to accept the telemetry feedback, compute control outputs, and then feed those outputs to War Thunder as a "HID joystick" device. As part of the Arduino code, I'm in the process of developing a custom PID library. Here is a link to the PID library.