Board index FlightGear Support Interfacing

Interfacing autopilot ON/OFF switch with tcp socket  Topic is solved

Connecting two computers, using generic protocol, connecting with Matlab?

Interfacing autopilot ON/OFF switch with tcp socket

Postby Kalai » Mon Nov 27, 2017 7:06 pm

I am trying to build android app for boeing 777 cockpit autopilot panel. I have been testing autopilot ON/OFF with flightgear property tree by executing fgfs --httpd 5400. But turning ON autopilot doesn't update the value in the node. It still shows
/controls/autoflight/autopilot/engage = false
/controls/autoflight/autopilot[1]/engage = false
Kalai
 
Posts: 6
Joined: Mon Nov 27, 2017 6:29 pm

Re: Interfacing autopilot ON/OFF switch with tcp socket

Postby Hooray » Mon Nov 27, 2017 7:13 pm

Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11100
Joined: Tue Mar 25, 2008 8:40 am

Re: Interfacing autopilot ON/OFF switch with tcp socket

Postby BEL ISAAK » Tue Nov 28, 2017 8:26 am

You have to set the property /instrumentation/afds/inputs/AP to True to engage the 777's autopilot, or false to disengage. Your other properties are tied to this property and will adjust accordingly.
User avatar
BEL ISAAK
 
Posts: 162
Joined: Sat Jun 04, 2011 2:52 pm
Location: Leuven, Belgium
Callsign: OO-ISA
Version: 2017.3.1
OS: Windows

Re: Interfacing autopilot ON/OFF switch with tcp socket  

Postby Kalai » Thu Nov 30, 2017 5:25 pm

Thank you. /instrumentation/afds/inputs/AP to True to engage the 777's autopilot, or false to disengage. WORKS!!!!
Kalai
 
Posts: 6
Joined: Mon Nov 27, 2017 6:29 pm

Re: Interfacing autopilot ON/OFF switch with tcp socket

Postby BEL ISAAK » Thu Nov 30, 2017 8:38 pm

You 're welcome, glad I could help :-)
User avatar
BEL ISAAK
 
Posts: 162
Joined: Sat Jun 04, 2011 2:52 pm
Location: Leuven, Belgium
Callsign: OO-ISA
Version: 2017.3.1
OS: Windows


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 2 guests