Board index FlightGear Development Add-ons

Add-On LittleNavMap connection (with additional tool)

FlightGear has support for add-ons, to further extend the simulator's core functionality.

Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Sat Jan 02, 2021 5:00 pm

Hi all,

If someone want to try connector between FlightGear and LittleNavMap then there is a chance for it. Details:

- There is the repository: https://github.com/slawekmikula/flightg ... ttlenavmap with the Add-On to the FlightGear
- There is the repository: https://github.com/slawekmikula/littlefgconnect for application that connects to this Add-On and mimicks XPlane connector (via shared memory) in order to give the information to the LittleNavMap

Manual for this connection is here: https://github.com/slawekmikula/flightg ... /manual.md

There is some issues:

* not every data is covered with current state of the code. The protocol file shows from what properties the data is taken from (https://github.com/slawekmikula/flightg ... navmap.xml). If someone from FG community can check it/correct it/add missing data it would be great.
* the AI craft (and online crafts) are not send right now (but in the future it can be done but with quering http server on FG side)

If anyone can test it and report what can be corrected/what is not working it would be super ! It is not tested (fgconnection) in Windows/Mac environment. It would be OK to test/correct the build scripts etc.

Sneak peek:
Image
Last edited by slawekmikula on Sat Jan 02, 2021 10:07 pm, edited 1 time in total.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby F-PTCZ » Sat Jan 02, 2021 8:06 pm

Hi, I just don't understand how to execute littlefgconnect on Mac....
F-PTCZ
 
Posts: 59
Joined: Wed Mar 25, 2020 3:28 pm
Location: Paris
Callsign: F-PTCZ
Version: 2020.4.0
OS: MaC OS 12.0.1

Re: Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Sat Jan 02, 2021 8:19 pm

Compile it. There are no executables yet.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby F-PTCZ » Sat Jan 02, 2021 8:31 pm

Well, I simply don't know how to do that, I think I don't have the tools for this... I'm far for being a developer... I will have to wait an executable... :oops: :cry:
F-PTCZ
 
Posts: 59
Joined: Wed Mar 25, 2020 3:28 pm
Location: Paris
Callsign: F-PTCZ
Version: 2020.4.0
OS: MaC OS 12.0.1

Re: Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Sat Jan 02, 2021 8:41 pm

If Alex will merge this tool into littlenavmap then yes. There will be executables. Until then only way is to compile by self or wait for someone to provide executable for this OS.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby F-PTCZ » Sat Jan 02, 2021 9:18 pm

Ok, thanks, I will have to wait...I have waited until now, so... Many thanks anyway for what you do to improve FG !!
F-PTCZ
 
Posts: 59
Joined: Wed Mar 25, 2020 3:28 pm
Location: Paris
Callsign: F-PTCZ
Version: 2020.4.0
OS: MaC OS 12.0.1

Re: Add-On LittleNavMap connection (with additional tool)

Postby sfr » Sun Jan 10, 2021 6:20 pm

hi slawek,

i compiled it without issues on Kubuntu 18.04. so far it works without issue.
some observations i made:

- LNM has an option to collect aircraft performance data. atm this doesn't seem to work though

- LNM did update the a/c position on the map just fine. but it seems it didn't notice the flight had been started (when flying with a flight plan created in LNM but hand-flying in FG, Cessna 172P).
iirc there was a text shown in LNM sth like "Location: airport, parked" while i was already flying

but its very well possible i missed a setting in LNM

i'm looking forward to further improvements to this tool!
sfr
 
Posts: 93
Joined: Sun Nov 17, 2019 6:25 pm
Callsign: D-CSFR
Version: 2020.4
OS: Kubuntu 18.04 LTS

Re: Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Sun Jan 10, 2021 6:40 pm

Thanks for info. Good that it can be made into working state :) that's great !

I'll look into the issues. I'll ask Alex (LNM author) what should be done for this (I think updating aircraft flags but i'll ask). I haven't been using everything when flying very much (sic!) :)

I've got ideas also for:
- AI aircrafts (but phi has to been started on the FG side)
- MP aircrafts by direct connection to multiplayer server

Nonetheless right now little time for free-time-coding so rather in the second part of this month something new with this integration.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Sun Jan 10, 2021 9:01 pm

I've got reply from Alex (https://github.com/albar965/littlenavma ... -757532022). I'll take a look at it some time this week. Nonetheless I think most of them are already transferred to LNM beside the ON_GROUND flag which I'll look how to implement.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Sun Jan 10, 2021 11:24 pm

I've pushed quick fix to littlefgconnect. Compile it again and it should activate flight plan. I hope everything else also will be working. Please give me additional info if something will be still wrong.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Mon Jan 11, 2021 8:06 am

I've checked and now LNM correctly set current leg of flightplan etc. flight performance is also active.

Unfortunately the fuel flow is not reporting correctly. I've been using (for JSB FDM) value from the /fdm/jsb/fuel/fuel-flow-pps but it is not present :( I've checked c172, c182s, dr-400 dauphin (jsb version) and none report there fuel flow. Does anyone know how to get fuel flow from JSB/Yasim FDMs ?
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby benih » Mon Jan 11, 2021 8:20 am

slawekmikula wrote in Mon Jan 11, 2021 8:06 am:Does anyone know how to get fuel flow from JSB/Yasim FDMs ?

I think it is /fdm/jsbsim/propulsion/engine/fuel-flow-rate-pps
for jsbsim.

There should also be a -gph property telling it in gallons instead of pounds.
User avatar
benih
 
Posts: 1689
Joined: Tue Aug 15, 2017 10:34 am
Callsign: D-EBHX
Version: next
OS: Debian Linux 64bit

Re: Add-On LittleNavMap connection (with additional tool)

Postby sfr » Mon Jan 11, 2021 12:15 pm

thank you for the very quick response @slawekmikula. i'll try it later on.

EDIT: confirmed, it's working, :D
Last edited by sfr on Mon Jan 11, 2021 2:42 pm, edited 1 time in total.
sfr
 
Posts: 93
Joined: Sun Nov 17, 2019 6:25 pm
Callsign: D-CSFR
Version: 2020.4
OS: Kubuntu 18.04 LTS

Re: Add-On LittleNavMap connection (with additional tool)

Postby slawekmikula » Mon Jan 11, 2021 12:17 pm

sfr wrote in Mon Jan 11, 2021 12:15 pm:thank you for the very quick response @slawekmikula. i'll try it later on.


Benih gives me very nice information about fuel flow (thanks!) so I think aircraft performance can be finished with this (with JSBsim planes). If someone have knowledge regarding yasim planes I would be grateful for info :) I'll work on it as soon as RL permits.
slawekmikula
 
Posts: 128
Joined: Sun Feb 19, 2017 10:31 am

Re: Add-On LittleNavMap connection (with additional tool)

Postby WoodSTokk » Tue Jan 12, 2021 2:26 am

YaSim has a property for every engine:
Code: Select all
/engines/engine[n]/fuel-flow-gph
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye

Next

Return to Add-ons

Who is online

Users browsing this forum: No registered users and 0 guests