Board index FlightGear Support Flying

Unable to set Carb heat and Altitude at the same time

Controlling your aircraft, using the autopilot etc.

Unable to set Carb heat and Altitude at the same time

Postby Kaosiia » Mon Sep 21, 2020 3:57 pm

Hello,

I am trying to set my command line parameters so FlightGear starts with aircraft in the air at altitude 2000 and carb-heat off.

I am using --altitude=2000 --props:/controls/engines/current-engine/carb-heat=0

I have noticed that although i use the above parameters to start FlightGear, when it starts up, carb heat is 'on' instead of 'off' as i had initially set it.

I also noticed when i remove the altitude I set, and i use just only --props:/controls/engines/current-engine/carb-heat=0, then FlightGear starts up with carb heat as off.

I would like my FlightGear to start up with carb-heat off and aircraft in air at 2000 altitude.

Is there a reason why both cannot be set at the same time?

Any help will be appreciated. Thank you.
Kaosiia
 
Posts: 51
Joined: Fri Jan 24, 2020 12:06 am

Re: Unable to set Carb heat and Altitude at the same time

Postby Thorsten » Mon Sep 21, 2020 5:02 pm

Probably depends on the aircraft and what it tries to do when initializing in-air.
Thorsten
 
Posts: 11748
Joined: Mon Nov 02, 2009 8:33 am

Re: Unable to set Carb heat and Altitude at the same time

Postby Kaosiia » Mon Sep 21, 2020 5:18 pm

the aircraft is c172p, and i am trying to run the approach landing phase.

--prop:/controls/engines/current-engine/carb-heat=0 --prop:/sim/rendering/draw-mask/aircraft=0 --httpd=8080 --enable-auto-coordination --enable-freeze --disable-random-buildings --disable-random-vegetation --disable-random-objects --enable-auto-coordination --enable-fullscreen --timeofday=noon --airport=PHL --runway=9L --nav1=108.95 --metar="XXXX 012345Z 00000KT 3/4SM OVC003 A2992" --callsign=N123GT --aircraft=c172p --in-air --vc=100 --pitch=0 --roll=0

i notice that when i add --altitude = 2000, when FlightGear starts up, carb heat is 'on' instead of 'off' as i had initially set it.

but without --altitude=2000, FlightGear starts up with carb heat 'off' which matches how i set it.

This is weird to me. do you know how to solve this problem?

thank you in advance
Kaosiia
 
Posts: 51
Joined: Fri Jan 24, 2020 12:06 am

Re: Unable to set Carb heat and Altitude at the same time

Postby Thorsten » Mon Sep 21, 2020 5:24 pm

Don't use the C-172p, you're interfering with a rather complex aircraft-side system to do in-air starts which isn't going to respect your property input.
Thorsten
 
Posts: 11748
Joined: Mon Nov 02, 2009 8:33 am

Re: Unable to set Carb heat and Altitude at the same time

Postby Kaosiia » Mon Sep 21, 2020 5:45 pm

ahh, ok i see. Thank you. I have to use c-172p so that really isn't a choice for me. is there a way to bypass this so my property input is respected?
Kaosiia
 
Posts: 51
Joined: Fri Jan 24, 2020 12:06 am

Re: Unable to set Carb heat and Altitude at the same time

Postby wlbragg » Mon Sep 21, 2020 7:09 pm

--props:/controls/engines/current-engine/carb-heat=0

Doesn't show as a valid command line on my system. Besides that, the carb-heat is off by default so you shouldn't have to set it off.
Are you using the launcher's "On Approach" startup state?
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5769
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: Unable to set Carb heat and Altitude at the same time

Postby wlbragg » Mon Sep 21, 2020 7:11 pm

Are you using the launcher's "On Approach" startup state?

If so then yes, the state will turn that on automatically as your "on-approach". It sounds like you want a state for starting in "cruise", right?
Last edited by wlbragg on Mon Sep 21, 2020 7:15 pm, edited 1 time in total.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5769
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: Unable to set Carb heat and Altitude at the same time

Postby wlbragg » Mon Sep 21, 2020 7:15 pm

A quick fix is to change line 34 in c172p/Nasal/state-manager.nas from...
Code: Select all
setprop("/controls/engines/current-engine/carb-heat", 1);

to
Code: Select all
setprop("/controls/engines/current-engine/carb-heat", 0);

We're working on the startup state logic as we speak and should have an update that includes a "cruise" state, I believe, before too long.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5769
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: Unable to set Carb heat and Altitude at the same time

Postby Kaosiia » Mon Sep 21, 2020 7:16 pm

i meant --prop:/controls/engines/current-engine/carb-heat=0. The extra 's' in props was a typo.

I am flying a c172p and i am starting the flight on approach..while the aircraft is about to land or preparing for landing.
Kaosiia
 
Posts: 51
Joined: Fri Jan 24, 2020 12:06 am

Re: Unable to set Carb heat and Altitude at the same time

Postby wlbragg » Mon Sep 21, 2020 7:26 pm

Ok, for now you can change that one line in the nasal file and it will do as it does now but with the carb heat set to 0.
Trying to set it with a prop gets overwritten by the state manager.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
Intel i5 3570K AMDRX480
User avatar
wlbragg
 
Posts: 5769
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/AMDRX480

Re: Unable to set Carb heat and Altitude at the same time

Postby Kaosiia » Mon Sep 21, 2020 7:57 pm

that worked!!
Thank you so much @wlbragg
Kaosiia
 
Posts: 51
Joined: Fri Jan 24, 2020 12:06 am


Return to Flying

Who is online

Users browsing this forum: No registered users and 5 guests