8814847d59
https://github.com/c172p-team/c172p-detailed/tree/version/2018.1
b90f547039
Changelog:
New images for the new splash screen and thumbnails system
FDM improvements:
Fixed deflection angles of ailerons and roll moment due to ailerons
Added spiraling propwash effect (requiring right rudder at full throttle, low airspeed)
Made the elevator action at high AoA asymmetric in order to take into account the screening effect of the horizontal stabilizer in such stall conditions
Increasing the side force due to rudder, to make it consistent with the exerted moment
Decreasing the adverse yaw (the aileron trim gave too much slip-skid-ball deviation at cruise)
Increased maximum rotation of yoke from 70 to 90 degrees
Use shift + q to reset view
Added avionics sound
Fixed bug with oil temperature and pressure gauges (they were not working when complex engine procedures was toggled off)
Fixed bug with lighting of pontoon wake effect
Eliminated wingtip and tail sparks when over water
Eliminated sparks of broken gear while aircrafts sits on the flight deck of a moving carrier
Fixed some bugs with the walker
56 lines
2.1 KiB
Text
56 lines
2.1 KiB
Text
# Copyright (C) 2017 onox
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
var dt = 0.5;
|
|
var fast_dt = 0.3;
|
|
|
|
var views = props.globals.getNode("sim").getChildren("view");
|
|
|
|
var reset_view = func (dt) {
|
|
var fow = getprop("sim/current-view/config/default-field-of-view-deg");
|
|
var heading_deg = getprop("sim/current-view/config/heading-offset-deg");
|
|
var pitch_deg = getprop("sim/current-view/config/pitch-offset-deg");
|
|
var roll_deg = getprop("sim/current-view/config/roll-offset-deg");
|
|
|
|
var current_heading_deg = getprop("sim/current-view/heading-offset-deg");
|
|
|
|
if (current_heading_deg > 180.0) heading_deg += 360.0;
|
|
|
|
interpolate("sim/current-view/field-of-view", fow, dt);
|
|
interpolate("sim/current-view/heading-offset-deg", heading_deg, dt);
|
|
interpolate("sim/current-view/pitch-offset-deg", pitch_deg, dt);
|
|
interpolate("sim/current-view/roll-offset-deg", roll_deg, dt);
|
|
|
|
if (getprop("sim/current-view/internal")) {
|
|
var index = getprop("sim/current-view/view-number");
|
|
|
|
var x_offset = views[index].getValue("config/x-offset-m");
|
|
var y_offset = views[index].getValue("config/y-offset-m");
|
|
|
|
interpolate("sim/current-view/x-offset-m", x_offset, dt);
|
|
interpolate("sim/current-view/y-offset-m", y_offset, dt);
|
|
}
|
|
};
|
|
|
|
var pilot_view = func {
|
|
reset_view(dt);
|
|
|
|
if (getprop("sim/current-view/internal")) {
|
|
var index = getprop("sim/current-view/view-number");
|
|
var z_offset = views[index].getValue("config/z-offset-m");
|
|
|
|
interpolate("sim/current-view/z-offset-m", z_offset, dt);
|
|
}
|
|
};
|