Board index FlightGear Support Interfacing

MATLAB can't find Flightgear executable in Ubuntu

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

MATLAB can't find Flightgear executable in Ubuntu

Postby 9gurikov » Sun Nov 13, 2016 10:02 am

Hello to evryone!

I'm trying to run the "NASA HL-20 with Optional FlightGear Interface" example in MATLAB R2016b with Flighgear 2016.3.1 in Ubuntu 16.04.
Image
When I open the Flightgear block and trying to launch HL-20 in flightgear i get this error.
Image

I launched this example with Flighgear 2016.3.1 and MATLAB R2016a in windows 7 succesfully.

What path to the FlightGear base directory is correct in Ubuntu?
Last edited by 9gurikov on Mon Nov 14, 2016 10:44 am, edited 1 time in total.
9gurikov
 
Posts: 6
Joined: Sun Nov 13, 2016 9:31 am

Re: MATLAB can't find Flightgear excecutable in Ubuntu

Postby wkitty42 » Sun Nov 13, 2016 12:47 pm

that depends on your installation... in my case, my flightgear is built by me on my system and remains completely inside my home directory... i have no system flightgear installed (any more)... i'm using ubuntu 14.04... which ubuntu are you using? how did you install your FGFS 2016.3.1? where did you get it from?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: MATLAB can't find Flightgear excecutable in Ubuntu

Postby 9gurikov » Sun Nov 13, 2016 1:17 pm

wkitty42 wrote in Sun Nov 13, 2016 12:47 pm:that depends on your installation... in my case, my flightgear is built by me on my system and remains completely inside my home directory... i have no system flightgear installed (any more)... i'm using ubuntu 14.04... which ubuntu are you using? how did you install your FGFS 2016.3.1? where did you get it from?


I'm using Ubuntu 16.04. I've installed my FGFS by following inscructions from this page http://wiki.flightgear.org/Howto:Install_Flightgear_from_a_PPA
I did this commands:
Code: Select all
sudo add-apt-repository ppa:saiarcot895/flightgear
sudo apt-get update
sudo apt-get install flightgear


and got my FGFS
9gurikov
 
Posts: 6
Joined: Sun Nov 13, 2016 9:31 am

Re: MATLAB can't find Flightgear excecutable in Ubuntu

Postby wkitty42 » Sun Nov 13, 2016 2:13 pm

ok, so you are using the PPA... IIRC, /usr/share/games/flightgear is for all the default data...

it appears that that bottom box is saying that your MATLAB HL-20 wants 2016.1 and you have 2016.3... it looks to me like the bottom box is telling you to edit some (MATLAB??) files so the version they are looking for matches your installed flightgear version... i'm not familiar with those mentioned package files net_fdm and net_ctrl which it speaks of...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: MATLAB can't find Flightgear excecutable in Ubuntu

Postby 9gurikov » Sun Nov 13, 2016 2:32 pm

wkitty42 wrote in Sun Nov 13, 2016 2:13 pm:ok, so you are using the PPA... IIRC, /usr/share/games/flightgear is for all the default data...

it appears that that bottom box is saying that your MATLAB HL-20 wants 2016.1 and you have 2016.3... it looks to me like the bottom box is telling you to edit some (MATLAB??) files so the version they are looking for matches your installed flightgear version... i'm not familiar with those mentioned package files net_fdm and net_ctrl which it speaks of...


The thing is, that the same MATLAB example succesfully uses FGFS 2016.3.1 in Windows.
And about this blocks, MATLAB which tells about.
These blocks have this choice of FGFS versions
Image
9gurikov
 
Posts: 6
Joined: Sun Nov 13, 2016 9:31 am

Re: MATLAB can't find Flightgear excecutable in Ubuntu

Postby wkitty42 » Sun Nov 13, 2016 2:36 pm

apparently the MATLAB stuff on your *nix is lagging behind... find out how to update it to support FGFS 2016.2.1 and 2016.3.1 and the soon to be released (in 5 days) 2016.4.1...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9148
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: MATLAB can't find Flightgear executable in Ubuntu

Postby fgsco1 » Sat Dec 30, 2017 3:08 pm

I met a same problem.
But my flightgear is 2016.3.1 which matlab complain the same version.
all Pack net_fdm Packet, Receive net_ctrl Packet, Unpack net_ctrl Packet are set to match the same flightgear version v2016.3.

it looks that Matlab can't find the right flightgear version.
what path does Matlab to read the flightgear version ?

Image
fgsco1
 
Posts: 1
Joined: Sat Dec 30, 2017 1:54 pm

Re: MATLAB can't find Flightgear executable in Ubuntu

Postby 9gurikov » Tue Jan 02, 2018 5:53 am

I've installed the older version of FlightGear (3.4.0) and it worked for me.
You can also try to look into MATLAB functions in the FlightGear mask and edit them.
9gurikov
 
Posts: 6
Joined: Sun Nov 13, 2016 9:31 am


Return to Interfacing

Who is online

Users browsing this forum: No registered users and 2 guests