Jump to content
The simFlight Network Forums

John Dowson

Members
  • Posts

    11,630
  • Joined

  • Last visited

  • Days Won

    231

Posts posted by John Dowson

  1. Hi jwillyf,

    as NaMc0 says, please remove you key ASAP. If people see this and start to use this key it will be blacklisted, NEVER post registration details please.

    All three parts of the key must be correct and those used at the time of purchase: name, email and key. Copy and paste from the original registration email. If you do not have this email, you can retrieve your details from your simmarket account.

    Regards,

    John

  2. Hi,

    you probably want offset 030C - from the offset status document: Vertical speed, copy of offset 02C8 whilst airborne, not updated whilst the “on ground” flag (0366) is set. Can be used to check hardness of touchdown (but watch out for bounces which may change this).

    There is a discussion on landing rate calculation here: https://www.avsim.com/forums/topic/524247-how-is-landing-rate-calculated/

    Cheers,

    John

  3. Also i'm not sure that this will do what you want it to do. Control 1009 is the Traffic Density Toggle. Toggling this only works in one session, and if there is no known initial state then this will set/toggle the density to 100%.

    You may therefore want to add a 0 parameter or use control 1008 instead.

    There is a similar lua example included that may be useful -  this freezes taxi-out AI traffic when you lower gear (or lower flaps) and releases when you land:

    -- NOTE: For use with FSUIPC 5 only
    
    -- This small plug in, which should be pre-loaded: for example, by adding
    -- [Auto] 
    -- 1=Lua AIfreezer
    -- to your FSUIPC5.INI file.
    
    -- It freezes taxi-out AI traffic when you lower your gear,
    -- and releases them when you touch down.
    
    -- For aircraft with non-retractable gear, it checks the state of
    -- the Flaps instead, expecting full flaps for landing. (amend where
    -- noted for other flap settings).
    
    function GroundCheck(off, val)
    	if ipc.val ~= 0 then
    		ipc.control(1149) -- Freeze AI off if user landed
    		ipc.log("AI taxiout traffic released")
    	end
    end
    
    function GearCheck(off, val)
    	if val >= 16383 and ipc.readUW(0x0366) == 0 then
    		ipc.control(1150) -- Freeze AI on if gear just lowered (whilst in the air)
    		ipc.log("AI taxiout traffic frozen")
    	end
    end
    
    function FlapsCheck(off, val)
    	-- See if gear is fixed first:
    	if ipc.readUB(0x060C) == 0 then
    		if val >= 16383 and ipc.readUW(0x0366) == 0 then
    			ipc.control(1150) -- Freeze AI on if now full flaps set when in the air
    			ipc.log("AI taxiout traffic frozen")
    		end
    	end
    end
    
    event.offset(0x0366, "UW", "GroundCheck")
    event.offset(0x0BE8, "UD", "GearCheck")
    event.offset(0x0BDC, "UD", "FlapsCheck")
    

    John

  4. I think you want offset 0366, not 0336. Try with
       event.offset(0x0366, "UW", "trafficoff")

    John

    *update*

    You are also missing an end statement for the if: 
     

    function trafficoff(offset, value)
        if value == 0 then
            ipc.control(1009)
            ipc.log("AI traffic turned off")
        end
    end

     event.offset(0x0366, "UW", "trafficoff")
     

  5. You will need to add some logging options to get more info. However, I am travelling today & tomorrow and do not have access to my windows machines so cannot let you know until Friday. Pete is also back tomorrow (or maybe Friday) who may pick this up and give you further advice.
    In the meantime, can you confirm that you have disconnected your devices &  uninstalled all saitek devices, drivers and software (from the control panel), then reboot and connect your devices (which should install the standard windows drivers, not the Saitek ones). If not, please do this first.

    Cheers,

    John

  6. Do you have the action required set to 'Send direct to FSUIPC Calibration'?
    The axis action should also be 'Steering Tiller' on the left hand side ('This side to send axis values''), and not 'Axis Steering Set'.

    Also make sure that you are using the latest version of FSUIPC, 5.141e. There have been some recent updates to the tiller steering, although these are mainly to do with tiller/rudder blending and should not affect the axis calibration visibility...

    Cheers,

    John

  7. You have still not supplied enough information.

    Are you using  a registered or unregistered version of FSUIPC5?

    Are you assigning axis and/or calibrating in FSUIPC? Have you disabled controllers in P3D?

    Some strange problems can occur with a corrupt wxstationlist.bin  file - you could try deleting this (from your Appdata P3D folder, next to the P3D CFG file) - it will be rebuilt.

    If the problem still persists, try re-installing the P3D client.

     

  8. The GUID in the device scan:
     

          250 Product= Saitek Pro Flight X-56 Rhino Stick
          250    Manufacturer= Mad Catz
          250    Vendor=0738, Product=2221 (Version 0.20)
          250    GUIDs returned for product: VID_0738&PID_2221:
          250       GUID= {9FEFC960-C406-11E8-8007-444553540000}
          250       Details: Btns=0, POVs=(0, 0, 0, 0), Cal=x00000000, Max=R0,U0,V0,X0,Y0,Z0

    is different from the GUID of the device acquired for use:

          250 Device acquired for use:
          250    Joystick ID = 0 (Registry okay)
          250    0=X56 H.O.T.A.S. Stick
          250    0.GUID={9FF0B3C0-C406-11E8-8008-444553540000}

    So it looks like you have a registry problem. Try disconnecting the device and reboot, then connect the device again.
     

    John

    **edit**: Did you uninstall the saitek drivers?

  9. Why are you sending on press AND release - try one or the other (and you probably don't want to repeat!).

    PMDG do not use the standard P3D controls for many functions but use their own custom controls. You can take a look at the SDK documentation to see what controls are available.

    You could try assigning to FS control 'AP Master', which is what the 'Z' key sends. Otherwise you can try assigning the button directly to the keypress (left hand side of your screenshot).


    If that doesn't work, you have two further options: Mouse Macros or possibly LVARS. Mouse macros should be relatively straight forward - please see the FSUIPC documentation in your documents subfolder for this. I am not sure about LVARs - you can try using the 'List LVars' control to see if there are any for autopilot functions, or use the 'log lvars' lua script

    Cheers,

    John

     

     

  10. The movement of the yoke corresponds to the movement of the ailerons (and elevators of course) and the full deflection of the yoke (in this case 90 degrees) corresponds to full aileron deflection . If you restrict the yoke movement by 50% (from 90% to 45%), you are restricting the movement of the ailerons. You could do this, by using a Lua plugin (by checking the aileron deflection value  and limiting it to a maximum/minimum) , but it is not recommend as you would be losing the ability to move the ailerons through their full range.

    If you want full aileron deflection but only to limit the visuals of the yoke, then this is almost certainly not possible as this would have been implemented by the aircraft designers and based upon the yoke movement of that particular aircraft. 

    Hope this helps. Regards,

    John

  11. Are you assigning to a control or a keypress? Does the keypress (z key?) work?

    This thread may be helpful:  http://forum.aerosoft.com/index.php?/topic/38298-cant-disconnect-autopilot/

    There is also a Lua script for controlling the Aerosoft A320 autopilot functions available from a link in this post: http://forum.aerosoft.com/index.php?/topic/85325-airbus-a318a319-lua-script-for-fsuipc/ and further information  here: http://forum.aerosoft.com/index.php?/topic/68729-using-joystick-to-control-autopilot-functions/

    Also, for future reference, it is always a good idea to attach your FSUIPC5.ini file for assignment/calibration problems.

    Cheers,

    John

    EDIT: looks like the lua scripts from those links are no longer available. Instead you could download the lua scripts from the linda package here (or look for a later/updated version) : https://www.avsim.com/forums/topic/451948-aerosoft-airbus-module-44-v3/.  You don't necessarily have to use the whole script, but it might give you some insight into how to get this working (i.e. its using the lvars AB_AP_AP1& AB_AP_AP2 to turn autopilot 1 & 2 on/off (with parameters 1/0 respectively)

  12. Quote

     

    Now i have one more question. After entring the control number in <custom control> What would i enter in the parameter box (in FSUIPC) if one left click on the ENG1 starter switch (OFF-GRD) (in the PMDG VC) displayed these 2 Lines in the logging file?

    Cntrl= 69751 (0x00011077), param= 536870912 (0x20000000) <69751>
    Cntrl= 69571 (0x00011077), param= 131072 (0x00020000) <69751>

     

    If that was one click, then its probably sending parameter 536870912 (0x20000000) on the button press, and 131072 (0x00020000) on the release, using the same control (69751). Check in the PMDG documentation. You can duplicate that in your assignment.

    Cheers,

    John

  13. Your setting are saved in the FSUIPC5.ini file, located in your Modules folder (under your sim install directory). Make a backup and restore that to get you settings back. If you use profiles in separate files, you would have to backup the profile file for each aircraft (they will be called <aircraft>.ini and located in the 'Profiles' subdirectory under the Modules folder). 

    Cheers,

    John

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.