happy cavin Posted July 15, 2019 Share Posted July 15, 2019 we know some sensor datas like these: sensor_data local aoa = sensor_data:getAngleOfAttack() local speed = sensor_data:getSelfVelocity() local sas = sensor_data:getSelfAirspeed() local tas = sensor_data:getTrueAirSpeed() local ias = sensor_data:getIndicatedAirSpeed() local mach = sensor_data:getMachNumber() local vv = sensor_data:getVerticalVelocity() local gforce = sensor_data:getVerticalAcceleration() local balt = sensor_data:getBarometricAltitude() local ralt = sensor_data:getRadarAltitude() local pitch = sensor_data:getStickRollPosition() / 100 local roll = sensor_data:getStickPitchPosition() / 100 local rudder = sensor_data:getRudderPosition() / 100 local throttle = sensor_data:getThrottleLeftPosition() local gear = sensor_data:getLandingGearHandlePos() local speedbrake = sensor_data:getSpeedBrakePos() local rpm = sensor_data:getEngineLeftRPM() local flaps = sensor_data:getFlapsPos() local cpy_state = sensor_data:getCanopyState() anyone can help me write a sentence for a tail hook position? Thanks in advance! Link to comment Share on other sites More sharing options...
SkateZilla Posted July 17, 2019 Share Posted July 17, 2019 Simple: local HOOK_DEPLOYED = 0.0 local HOOK_STATE_Value = get_aircraft_draw_argument_value(25) if HOOK_STATE_Value = 1.0 Then HOOK_DEPLOYED = 1.0 end if HOOK_STATE_Value = 0.0 Then HOOK_DEPLOYED = 0.0 end if HOOK_STATE_Value > 0.0 And < 1.0 Then HOOK_DEPLOYED = 0.5 end You can then link the HOOK DEPLOYED Values to test/text/cockpit argument or other readouts (ie 0.0 RETRACTED, 1.0 DEPLOYED, 0.5 IN MOTION, etc etc. Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2), ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9) 3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs Link to comment Share on other sites More sharing options...
happy cavin Posted July 22, 2019 Author Share Posted July 22, 2019 Simple: local HOOK_DEPLOYED = 0.0 local HOOK_STATE_Value = get_aircraft_draw_argument_value(25) if HOOK_STATE_Value = 1.0 Then HOOK_DEPLOYED = 1.0 end if HOOK_STATE_Value = 0.0 Then HOOK_DEPLOYED = 0.0 end if HOOK_STATE_Value > 0.0 And < 1.0 Then HOOK_DEPLOYED = 0.5 end You can then link the HOOK DEPLOYED Values to test/text/cockpit argument or other readouts (ie 0.0 RETRACTED, 1.0 DEPLOYED, 0.5 IN MOTION, etc etc. Thank you ,man. Link to comment Share on other sites More sharing options...
Recommended Posts