From 3b0454f031b37a427659c7d263590809f6918840 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Mon, 15 Aug 2022 19:53:32 +0800 Subject: [PATCH] Systems: added magic bush tyre --- Nasal/systems.nas | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Nasal/systems.nas b/Nasal/systems.nas index 73e7989..9ac49fd 100644 --- a/Nasal/systems.nas +++ b/Nasal/systems.nas @@ -777,6 +777,22 @@ io.include("service.nas"); #//var model = geo.put_model(stationPath, stationCoord, stationCourse); # Place the default glider +var reduceRollingFriction = func(){ + print("rolling_friction-coeff reduced to 0.006"); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit/rolling_friction_coeff", 0.006); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit[1]/rolling_friction_coeff", 0.006); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit[2]/rolling_friction_coeff", 0.006); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit[3]/rolling_friction_coeff", 0.006); +} + +var resumeRollingFriction = func(){ + print("rolling_friction-coeff resumed to 0.06"); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit/rolling_friction_coeff", 0.06); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit[1]/rolling_friction_coeff", 0.06); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit[2]/rolling_friction_coeff", 0.06); + props.getNode("/",1).setValue("/fdm/jsbsim/gear/unit[3]/rolling_friction_coeff", 0.06); +} + #//Testing var testingProgram_1_Entry = func(){ autospeed.startAutoSpeed();