Board index FlightGear Support

Tuning of electrical system in DR400-Dauphin

All general support: help on flying, installation, hardware, getting online etc. There are lots of users and developers to help you out.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- where did you download your aircraft/scenery from?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).

Please report any bugs not specific to an aircraft on the issue tracker.
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

Tuning of electrical system in DR400-Dauphin

Postby janrippl » Fri Nov 08, 2013 1:30 am

Yes, I know. Many developers of Aircraft try follow target with name "Realistic simulation". It is good idea, but sometimes it is non-usable in practice :-/ DR-400 Dauphin in FG its the best Ultralight in FG by The Cessna 337, Yak18T, Socata-ST10, Cap10B or C, but have very sensitive Battery. You can start Engine and set-up alternator ON, OFF pump and Battery, but not will help. After Land and Engine Shutdown, You not will able start again because battery will "kaput, how says German pilots :) In easy, its not useable in FG, because alternator not charging battery in flight.

Here is my tuning (DR400-dauphin/Nasal/electrical.nas) line 42:
Code: Select all
apply_load : func {
        var amphrs_used = arg[0] * arg[1] / 3600.0;
        var percent_used = amphrs_used / me.amp_hours;
        me.charge_percent -= percent_used;
        if ( me.charge_percent < 0.0 ) {
            me.charge_percent = 100.0; 
        } elsif ( me.charge_percent > 100.0 ) {
            me.charge_percent = 100.0;
        }
        return me.amp_hours * me.charge_percent;
    },


Original code:
Code: Select all
apply_load : func {
        var amphrs_used = arg[0] * arg[1] / 3600.0;
        var percent_used = amphrs_used / me.amp_hours;
        me.charge_percent -= percent_used;
        if ( me.charge_percent < 0.0 ) {
            me.charge_percent = 0.0;
        } elsif ( me.charge_percent > 1.0 ) {
            me.charge_percent = 1.0;
        }
        return me.amp_hours * me.charge_percent;
    },


BTW, I thing that possible Bug of alternator is in same file on line 72, where exist one coment character "#" before alternator function under header of event. But I am not very good programator. Maye somebody another can check it :)

Possible Bug:
Code: Select all
############################################################################
##################### Définition de l'aternateur ###########################
############################################################################
# var alternator = Alternator.new("rpm-source",rpm_threshold,volts,amps);
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Re: Tuning of electrical system in DR400-Dauphin

Postby F-JJTH » Fri Nov 08, 2013 3:48 am

Hi,

I don't think the alternator is not charging the battery. I just had a flight with the DR400-dauphin and I was able to restart my engine after a flight of 35 min.
I know the starter is consuming a lot of amps, maybe I could reduce this value for those who use the starter regulary. I admit I don't start/stop my engine multiple time in a session.
However I've just done a lot of start/stop and I have no problem to start and stop my engine 10 ~ 12 times, the battery still ok (of course I set the alternator ON in order to charge the battery as soon as the engine is running)

You have to be sure you set the battery OFF as soon as possible when your engine is OFF, else the battery will be out-of-service after 6~8 min

You can verify that the alternator is working fine by looking at the property tree: /systems/electrical/volts
- At start volts = 0
- Turn ON the battery, volts = 28.87 and the value decrease
- Turn ON the engine then turn ON the alternator, volts = 28
- Turn OFF the alternator, volts = 28.87 and the value decrease
- Wait 30 seconds, the value should be 28.45
- Turn ON the alternator, volts = 28
- Wait 5 seconds
- Turn OFF the alternator, volts is 28.87 and the value decrease

So we can conclude the alternator is working fine.

- Wait 30 seconds ( volts is decreasing)
- Now turn OFF your engine, volts = 28.45
- Turn OFF your battery, volts = 0
- Wait 30 seconds
- Turn ON your battery, volts = 28.45 (same value as the when you turned OFF your battery)
- Start your engine, volts still decreasing
- Turn ON your alternator, volts = 28
- Turn OFF the alternator, volts = 28.87

Again, we can conclude the alternator is working fine :)

I invit you to revert your change, then change the line 308 load += 2.0; by load += 0.2;
Let me know if it solve the problem, then I will update it.

Regards,
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Tuning of electrical system in DR400-Dauphin

Postby janrippl » Fri Nov 08, 2013 2:38 pm

I revert my changes and changed line 308 by Your example, and seems it to be resolved, but I will need make longer flight for sure :) Thank You :)
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Re: Tuning of electrical system in DR400-Dauphin

Postby janrippl » Sat Nov 09, 2013 5:35 pm

I have new possible way:
apply_load : func {
var amphrs_used = arg[0] * arg[1] / 3600.0;
var percent_used = amphrs_used / me.amp_hours;
me.charge_percent -= percent_used;
if ( me.charge_percent < 0.0 ) {
me.charge_percent = 0.0;
} elsif ( me.charge_percent > 0.0 ) {
me.charge_percent = 1.0;
}
return me.amp_hours * me.charge_percent;
},
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Re: Tuning of electrical system in DR400-Dauphin

Postby F-JJTH » Sat Nov 09, 2013 10:55 pm

This is not a fix, it's a hack. Your change is by-passing the alternator role...
Why do you give a "new possible way" ? Did you tried my solution with a long flight ? it doesn't fix the battery problem ?
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Tuning of electrical system in DR400-Dauphin

Postby janrippl » Sun Nov 10, 2013 12:28 am

I'm afraid not :( It is a reason why I changed it in my instalation If I start FG and stand with dauphin on parking some times (10 minutes and more) without somthing in ON mode, despite its battery suddenly discharged :(

(I invit you to revert your change, then change the line 308 load += 2.0; by load += 0.2;)
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Re: Tuning of electrical system in DR400-Dauphin

Postby F-JJTH » Sun Nov 10, 2013 1:09 am

I just tried to reproduce what you said without success.
I've starter the DR400-dauphin, then didn't touch anything during 15 minutes (set a countdown on my smartphone). I set the battery ON, set the fuel valve, switch ON the fuel pump, set magneto on BOTH, set the master avionics ON then pressed the starter: the engine started very well. Then I stopped my engine (set magneto OFF) then restarted my engine 3 times without problem. My engine has started very well for any tentative.

I'm wondering if you have done other change in electrical.nas that brokes your DR400-dauphin. I suggest you to re-download a fresh DR400-dauphin then don't change anything and give a new try.

For information I know at least 3 persons who use the DR400-dauphin often and they haven't reported any bug about the battery. Also, this electrical.nas file is the same used on the Cap10B, Cap10C, DC-3, P92, B-25, R44 and DR400-jsbSim (and maybe more), but nobody reported a bug about the battery for these aircrafts.

I hope that downloading a new DR400-dauphin will fix your local problem.
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Tuning of electrical system in DR400-Dauphin

Postby janrippl » Wed Nov 20, 2013 3:38 pm

I have next issue, this time with nav1. I must notice, that this issue started after FG upgraded from 2.10 on 2.12 (Ubuntu 12.04). This issue dont allow use ILS or VOR via NAV1 frequency (working only in NAV2). In FG version 2.10 it worked properly :-/
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Re: Tuning of electrical system in DR400-Dauphin

Postby F-JJTH » Wed Nov 20, 2013 7:32 pm

Hi,
I just got an ILS approach at LFML on NAV1 with success. However I'm using the development version of FG, maybe there is a bug in FG 2.12 about NAV1 but I didn't hear about that.

Regards,
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Tuning of electrical system in DR400-Dauphin

Postby janrippl » Wed Nov 20, 2013 7:52 pm

This bug is only in DR400-dauphin, in DR400-jsbSim it working properly, and only in FG 2.12. If I set ILS frequency (for example 111.55 MHz) in NAV1 (in panel of Aircraft or in GUI), not detected. If I will do same in NAV2, its detected corretly (lightblue radius ILS + sound signal).
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Re: Tuning of electrical system in DR400-Dauphin

Postby F-JJTH » Wed Nov 20, 2013 9:24 pm

Ok I installed FG 2.12 and give a try with the DR400-dauphin here, result: NAV1 is able to detect the ILS frequency I'm setting from the cockpit or GUI. I have the lightblue radius on the Map + the sound signal.

I'm afraid to conclude it's not a bug from the DR400-dauphin but something on your side.

I invit you to test at another airport, here I had a flight at LFML, the ILS frequency is 111.15 MHz and it works really fine

Regards,
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Tuning of electrical system in DR400-Dauphin

Postby janrippl » Thu Nov 21, 2013 12:25 am

I tested it on many Airports :( LKPR, KXTA, LKKV, VOR in Eger, and same trouble :( I have upgraded FG from this PPA http://linuxg.net/how-to-install-flight ... pear-os-8/
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Re: Tuning of electrical system in DR400-Dauphin

Postby F-JJTH » Thu Nov 21, 2013 1:23 am

I give a try at LKPR and everythings works fine, I landed on runway 24 with the ILS 109.10 MHz. The DR400-dauphin has flown without my intervention up to the runway. No bug, no problem, it just work as expected.

I done this test with a FG 2.12 on Windows + FG 2.99 on Linux, for each it was the same result: everything works fine as expected.

I hope you will find the cause on your side :/

Have a good flight ;)
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Tuning of electrical system in DR400-Dauphin

Postby F-JJTH » Sat Nov 30, 2013 5:43 pm

@janrippl: f-ojac found that NAV receiver was working only with an autostart action (, the bug was in the Aircraft/Instruments-3d/KX165 instrument, it's now fixed in GIT.
Only DR400-dauphin was hitted by this bug because he use this instrument instead of a copy of him (that way if someone improve this instrument every aircraft who use him will have the improvement automatically, and it's exactly what happens today)

You just need to wait for the 3.0 release (feb 2014)

PS: however it seems that NAV1 is working fine when you are in flight but not on ground, I can't explain this behaviour :/

Regards,
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Tuning of electrical system in DR400-Dauphin

Postby janrippl » Mon Dec 02, 2013 12:27 am

Well I will test it :)
From 2014/19/04 I flying under VA Pan Am (http://www.panamvirtual.org/) My olds Callsings its OK-AS, CEF4200, V4A2184 and FAC2184... My Favorite aircraft in FlightGear and real life is Boeing 707 (in FG B707 version by Marc Kraus).
janrippl
 
Posts: 100
Joined: Mon Oct 21, 2013 7:55 pm
Location: Mokriny 188, As 352 01, Karlovy Vary, Czech republic
Callsign: PAA006
Version: 3.0.1
OS: Lubuntu 14.04

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 6 guests