Skip to content

Add cockpit shaking when carb icing affects aircraft performance #1526

@wlbragg

Description

@wlbragg

Currently there is little evidence that there is carb icing taking place. It's been stated that the aircraft runs "rough" when this condition causes ice to build up and restrict fuel flow. This fix will add a shaking effect that is meant to simulate "running rough".

See https://forum.flightgear.org/viewtopic.php?f=25&t=42734&start=15#p426780

This is a very simple addition to Nasal/engine.nas

if ( carb_ice > 0.149 ) shake_view();

....
      # since the carb_icing_rate gives an arbitrary final value, the rate is then scaled down by 0.00001 to ensure ice
       # accumulates as slowly as expected
       #carb_ice = carb_ice + carb_icing_rate * 0.00001;
       carb_ice = carb_ice + carb_icing_rate * 0.00001 * carb_rate_mult;
       carb_ice = std.max(0.0, std.min(carb_ice, 1.0));
       if ( carb_ice > 0.149 ) shake_view();
...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions