HHS81 / c182s

Cessna C182S (1996 model) for FlightGear
GNU General Public License v2.0
27 stars 9 forks source link

Electrical power limits activating winterization kit. #502

Closed wlbragg closed 1 year ago

wlbragg commented 1 year ago

I noticed on the c172p having electrical power applied to the aircraft causes some of the engine properties like rpm and velocities/groundspeed-kt to be active, not at 0. This is allowing some conditions to cause the GUI menu choice to not be "allowed".

This is happening on at least one of the c182 systems, the Winterization Kit.

hbeni commented 1 year ago

Winterzation kit needs a stopped propeller, to mimic real life conditions. Other things need a stopped plane.

That is intentional, but what exactly do you mean by „applying electrical power“? Are you attaching the ground based generator and that causes the issue you are describing?

wlbragg commented 1 year ago

It may only be my computer. See this video Notice the properties in the tree that are active even though the aircraft is not running, I only have the batt supplying power.

This is cold and dark in the c182 https://github.com/HHS81/c182s/assets/11069680/97662967-608d-415c-adf8-b2985b53364c

The problem is, even with the batt off the rmp property is active and I can't ever activate the winter kit. Same for other features in the c172p.

hbeni commented 1 year ago

Will investigate once i‘m at home again.

What is odd is that the prop seems to be spinning very slowly. What airport and weather settings where set?

wlbragg commented 1 year ago

It was PHTO live weather. I tried a couple other airports, switched to Fair weather. Then tried Basic weather. All the same thing.

dany93 commented 1 year ago

Also with 0kt wind?

dany93 commented 1 year ago

Instead, another more realistic (and easy to implement) condition would be (at least) both magnetos at 0. IRL, prior to do such interventions close to the propeller, we have BATT OFF (to prevent the starter from working), ALT OFF and Both magnetos OFF. In a simulator we can add "Aircraft on the ground" (WOW property).

wlbragg commented 1 year ago

Those all sound like good choices. I turned off the wind and the active values look like they are winding down. I'll leave it for awhile and see what it does. I'm not sure how to start the sim with no wind by default.

dany93 commented 1 year ago

@wlbragg wrote

how to start the sim with no wind by default

--wind=190@0 for 0 kt from 190 deg.

wlbragg commented 1 year ago

OK, thanks. I think it is the wind. After setting with no wind the rpm finally zeroed out along with a few other properties. There are still a couple winding down after 5-10 minutes. I don't like the fact that the wind is tied in any way to some of these properties, like temps and rpm. EDIT: After 20 minutes all the active properties zeroed out and stopped being active.

dany93 commented 1 year ago

In the simulator, the very weak rpm might be due to a propeller windmilling phenomena. By descending with throttle at zero in flight, the propeller spins more rapidly than idle. Although impossible IRL for usual winds on the ground.

hbeni commented 1 year ago

I remember some discussion on the mailing list that we had prop spin at power off with wind, which was to be countered using static friction (which we added). Maybe we also should check for regressions?

TheFGFSEagle commented 1 year ago

No, you should just allow some margin on the properties - like, allow adding / removing the winter kit below 1 RPM instead of at 0 RPM ! ;)

wlbragg commented 1 year ago

Maybe we also should check for regressions?

I remember that, do you remember where static friction was added?

I don't like rpm as the condition at all. Technically a pilot installing the kit could potentially move the prop and produce a micro amount of rpm. I think on the c172p we'll end up using use BATT OFF, ALT OFF and Both magnetos OFF. They are pretty benign and seem appropriate. Even just mags off would be sufficient. WOW and ground speed should also be good, but I am afraid of residual ground speed. causing an unintended failure.

TheFGFSEagle commented 1 year ago

WOW and ground speed should also be good, but I am afraid of residual ground speed. causing an unintended failure.

Would be better IMO - just check if the ground speed is less than 1 kt and you're good !

dany93 commented 1 year ago

@wlbragg wrote

do you remember where static friction was added?

It can be added in each engine configuration file <static-friction unit="{HP | WATTS}"> {number} </static-friction>

It is at 1.5 HP per default. It is used, changed elsewhere is our c172, if I remember well to simulate an engine clamping in case of overheating.

However, I don't like at all changing this value per default. Increasing it will give a loss of power and a decrease of the windmilling RPM. These values are good as they are or, at least, no one asked them to be changed.

JSBSim Engines Parameter definitions

Used to control and slow a windmilling propeller

Not to prevent some propeller rotation due to wind on ground. Even if it probably can have this effect. Using this property is a purely artificial way of preventing propeller rotation due to wind on ground. Just for the sake of simulation. And, IMO, inappropriate and useless: @wlbragg wrote

the rpm is reading positive. It is actually winding up slowly starting somewhere around 0.00273......

This value in the sim is microscopic and, maybe, not a flaw. Even IRL, we can imagine that the wind can make the propeller rotate by such an undetectable value. Moreover, when someone makes the propeller rotate by hand, the resistance will not be continuous friction but by steps due to cylinder compressions. When installing the cowl plugs, the pilot will probably rotate the propeller to have it in a good position. Which is a reason to have at least ALT OFF and both magnetos OFF. Making the propeller rotate by hand is often done, for diverse reasons. Propeller RPM = 0 is not at all a good criteria. Focalisation on this is purely a simulation concern, with no realistic meaning. Also, I had engine rpm = 0 when I did this test. Which means that it depends on I don't know what... Doesn't matter.

@dany93 wrote

IRL, prior to do such interventions close to the propeller, we have BATT OFF (to prevent the starter from working), ALT OFF and Both magnetos OFF. In a simulator we can add "Aircraft on the ground" (WOW property).

Plus, possibly, aircraft motionless on ground (purely simulation concern too...).

hbeni commented 1 year ago

Maybe we also should check for regressions?

I remember that, do you remember where static friction was added?

I think this was the commit:

commit c5982161d8ac2a8e9407aa4166b5675620121f4f Moved basic friction to engine static-friction