Board index FlightGear Support Interfacing

Unable to log Engine Thrust of Piper J3 Cub

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

Unable to log Engine Thrust of Piper J3 Cub

Postby Nishanth1711 » Sat Nov 14, 2015 7:43 am

Hello Flight Gear Community

I am trying to log the Engine Thrust of a Piper J3 Cub from the path specified in the $FG\data\Docs\README.properties
/engines/engine[%d]/thrust_lb

Since Piper has a single engine I modified it in my Cub-set.xml and replaced %d with 0 and ran the flight. But no values are getting logged in the CSV File

I also tried it with different no of engine values, Yet nothing was getting logged

Kindly help me

<logging>
<log>
<filename>controls.csv</filename>
<enabled>true</enabled>
<interval-ms>500</interval-ms>
<delimiter>,</delimiter>
<entry>
<title>thrust</title>
<property>/engines/engine[0]/thrust_lb</property>
</entry>
</log>
</logging>
Nishanth1711
 
Posts: 8
Joined: Wed Sep 30, 2015 2:06 pm

Re: Unable to log Engine Thrust of Piper J3 Cub

Postby FlugHund » Sat Nov 14, 2015 10:30 am

Nishanth1711 wrote in Sat Nov 14, 2015 7:43 am: <property>/engines/engine[0]/thrust_lb</property>


try "/engines/engine[0]/thrust_lbs" instead
User avatar
FlugHund
 
Posts: 568
Joined: Thu Mar 01, 2007 4:27 pm
Location: Inside ground effect
Callsign: D-HUND
IRC name: D-HUND / debdog
Version: next
OS: Devuan

Re: Unable to log Engine Thrust of Piper J3 Cub

Postby Nishanth1711 » Sat Nov 14, 2015 2:02 pm

Hello FlugHund

I tried with thrust_lbs as u suggested . Still no luck. Nothing is getting logged
Nishanth1711
 
Posts: 8
Joined: Wed Sep 30, 2015 2:06 pm

Re: Unable to log Engine Thrust of Piper J3 Cub

Postby Johan G » Sat Nov 14, 2015 10:11 pm

You might still have the wrong property. They can sometimes differ a lot between the aircraft. A good tool for hunting down the relevant property is the in-sim property browser.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6634
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: Unable to log Engine Thrust of Piper J3 Cub

Postby FlugHund » Sun Nov 15, 2015 12:32 pm

The only thing I can imagine right now is that even engine[0]/ and engine/ should be the same, sometimes they just aren't. So "/engines/engine/thrust-lbs" as a last option to try.
Oops, just saw, also no underline between thrust and lbs.
If that still does not work, check the fgfs.log. Mayhap you have to increase the loglevel in order to get a message about your logging stuff.
User avatar
FlugHund
 
Posts: 568
Joined: Thu Mar 01, 2007 4:27 pm
Location: Inside ground effect
Callsign: D-HUND
IRC name: D-HUND / debdog
Version: next
OS: Devuan


Return to Interfacing

Who is online

Users browsing this forum: rooman and 5 guests