Jump to content

Android DCS Throttle Control


Recommended Posts

Hi.

 

I've bought just the stick from TH Hotas Warthog and now it is so expensive to buy the throttle control. I've decide to develop an Android App to control:

 

- Throttle

- Gear

- Flaps

- Air Brake

 

This version is just for A10C, but I will try to develop for most of the mods.

 

Here is PlayStore Link and Github Code.

 

https://play.google.com/store/apps/details?id=com.dev.huertix.throttle_dcs_beta

 

https://github.com/Huertix/dcs-throttle

 

Thanks to Leonpo and his Instrument Panel App, which it was an starting point in my code.

 

It is a first release app, so if bugs are present, please repot it to me.

 

Thanks and enjoy.

  • Like 1
Link to comment
Share on other sites

that is true f4lO. but first I have to look how export CDU screen through UDP connection..

 

This should be easy enough to adapt:

http://forums.eagle.ru/showthread.php?p=2312247#post2312247

 

EDIT: You should also modify your Export.lua to play nice with others. Your current version simply replaces any pre-existing callback functions, so it will break anything that was loaded before it. Before defining a callback function such as LuaExportStart, you need to save a reference to the old LuaExportStart and then call it from your callback function:

local prevLuaExportStart = LuaExportStart
function LuaExportStart()
   if prevLuaExportStart then
       prevLuaExportStart()
   end
   -- your code here
end


Edited by [FSF]Ian
Link to comment
Share on other sites

Thanks for posting the code! I'm new to Android and have had some issues getting DCS to read my packets (it'll read packets from my c# app). This should prove to be helpful. Thanks again.

 

My pleasure.. ;) but, just to remark I am not an expert in code.


Edited by huertix
Link to comment
Share on other sites

  • 3 weeks later...

how do you install Android Throttle?

copied export lua

android ask for WIFI IP of DCS A10

 

but when started, says: disconnected

 

is there a guide somewhere?

| VR goggles | Autopilot panel | Headtracker | TM HOTAS | G920 HOTAS | MS FFB 2 | Throttle Quadrants | 8600K | GTX 1080 | 64GB RAM| Win 10 x64 | Voicerecognition | 50" UHD TV monitor | 40" 1080p TV monitor | 2x 24" 1080p side monitors | 24" 1080p touchscreen |

Link to comment
Share on other sites

how do you install Android Throttle?

copied export lua

android ask for WIFI IP of DCS A10

 

but when started, says: disconnected

 

is there a guide somewhere?

 

 

Sorry majapahit, I was away for a few days....

 

The guideline is as follow:

 

1- Copy de export.lua to your /Users/[...]/Saved Games/DCS/Scripts

 

2 - You need to know your DCS HOST IP, I mean your PC IP --> open a terminal and ipconfing command.

 

3 - Open the export.lua file and check the PORTS configurations or modify if dessire.

 

4 - Open the DCS-THROTTLE App and setting up DCS PC IP and ports. You shoud fill in the 3 fields before you can continue

 

5 - Run a mission

 

6 - if mission is running and app says "disconnect", press home and then back to the app... (it is a bug I have to fix). Now it should be work. Try to press flaps, gear or break bottons to make sure nothing is working.

 

 

My email is dhuerta23@gmail.com. contact me if you need. ;)

Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...