Results 1 to 30 of 563

Thread: TF DeviceLink like interface

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ATAG_Colander's Avatar
    Join Date
    Nov 2011
    Location
    Bir Tawil
    Posts
    11,128
    Post Thanks / Like
    Total Downloaded
    255.73 MB

    TF DeviceLink like interface

    Just another goodie in the TF release. A "DeviceLink" like readonly interface.

    - It accepts the same parameters as the "GetParameters" function for missions.
    - Only the data available in instruments for the airplane being flown will be available. This means, for example, that if you the plane you are flying does not have an altimeter, you will not receive values for the altimeter.
    - It has not been fully tested so it might have some bugs (i.e. missing information which is available in instruments).
    - Run it in a timer to get periodic updates.
    Those who know programming will know what can be done with it

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO.MemoryMappedFiles;
    
    namespace DeviceLinkServer
    {
        public class GameCommunications
        {
            private MemoryMappedFile m_MemoryMappedFile;
            private MemoryMappedViewAccessor m_MemoryMappedViewAccessor;
            public enum ParameterTypes
            {
                Nil,
                M_Random,
                M_Shake,
                M_CabinDamage,
                M_CabinState,
                M_NamedDamage,
                M_SystemWear,
                M_Health,
                C_Steering,
                C_Brake,
                C_Throttle,
                C_Trigger,
                C_Pitch,
                C_Mix,
                C_WaterRadiator,
                C_OilRadiator,
                C_RadiatorAutomation,
                C_PitchAutomation,
                C_Compressor,
                C_Afterburner,
                C_BoostEnabler,
                C_SlowRunningCutOut,
                C_Magneto,
                C_Feather,
                C_CarbHeater,
                C_HatchDoor,
                C_HatchJettison,
                C_Timer,
                C_Timer1,
                C_Aileron,
                C_Elevator,
                C_Rudder,
                C_AileronTrim,
                C_ElevatorTrim,
                C_RudderTrim,
                C_TailwheelLock,
                C_LandingFlap,
                C_LeadingEdgeSlats,
                C_Undercarriage,
                C_UndercarriageEmergency,
                C_BombBayDoor,
                C_Airbrake,
                C_FuelTankSelector,
                C_TelepirometroElettrico,
                C_AltimeterPinion,
                C_AnemometroPinion,
                C_BombSight,
                C_Sight,
                C_Bombenabwurfgerat,
                C_KraftstoffSelector,
                C_LiquidGauge0,
                C_LiquidGauge1,
                C_PriLights,
                C_SecLights,
                C_SightLights,
                C_PitotHeater,
                C_Handpumpe,
                C_RadTXRX,
                C_RadPriNav,
                C_RadSecNav,
                C_Kurssteuerung,
                A_Steering,
                A_Brake,
                A_Aileron,
                A_Elevator,
                A_Rudder,
                A_AileronTrim,
                A_ElevatorTrim,
                A_RudderTrim,
                A_Undercarriage,
                A_UndercarriageShock,
                A_UndercarriageWheel,
                A_HatchDoor,
                A_BombBayDoor,
                A_ImpellerAngle,
                A_ImpellerAngularVelocity,
                A_ImpellerUnfold,
                A_LandingFlap,
                A_Airbrake,
                A_EngineAirRadiator,
                A_EngineWaterRadiator,
                A_EngineOilRadiator,
                A_LeadingEdgeSlat,
                Z_Coordinates,
                Z_Orientation,
                Z_Overload,
                Z_AltitudeAGL,
                Z_AltitudeMSL,
                Z_VelocityIAS,
                Z_VelocityTAS,
                Z_VelocityMach,
                Z_AmbientAirTemperature,
                S_ElectricVoltage,
                S_ElectricIncandescingRatio,
                S_ElectricAmperage,
                S_ElectricPrimaryPitLight,
                S_ElectricSecondaryPitLight,
                S_ElectricSightLight,
                S_FuelReserve,
                S_HatchDoor,
                S_UndercarriageValve,
                S_PneumoContainerPressure,
                S_PneumoLinePressure,
                S_HydroPressure,
                S_HydroReserve,
                S_Sturzanlage,
                S_GunOperation,
                S_GunReserve,
                S_GunClipReserve,
                S_BombReserve,
                S_Fenster,
                S_PitotHeater,
                S_Bombenabwurfgerat,
                S_Turret,
                M_Reserved000,
                M_Reserved001,
                M_Reserved002,
                M_Reserved003,
                M_Reserved004,
                M_Reserved005,
                M_Reserved006,
                M_Reserved007,
                M_Reserved008,
                M_Reserved009,
                M_Reserved00A,
                M_Reserved00B,
                M_Reserved00C,
                M_Reserved00D,
                M_Reserved00E,
                M_Reserved00F,
                M_Reserved010,
                M_Reserved011,
                M_Reserved012,
                M_Reserved013,
                M_Reserved014,
                M_Reserved015,
                M_Reserved016,
                M_Reserved017,
                M_Reserved018,
                M_Reserved019,
                M_Reserved01A,
                M_Reserved01B,
                M_Reserved01C,
                M_Reserved01D,
                M_Reserved01E,
                M_Reserved01F,
                I_Timer,
                I_AmbientTemp,
                I_EngineRPM,
                I_EngineManPress,
                I_EngineBoostPress,
                I_EngineWatPress,
                I_EngineOilPress,
                I_EngineFuelPress,
                I_EngineWatTemp,
                I_EngineRadTemp,
                I_EngineOilTemp,
                I_EngineOilRadiatorTemp,
                I_EngineTemperature,
                I_EngineCarbTemp,
                I_Pitch,
                I_VelocityIAS,
                I_Altitude,
                I_Variometer,
                I_Slip,
                I_MagneticCompass,
                I_RepeaterCompass,
                I_Peilzeiger,
                I_FuelReserve,
                I_LiquidReserve,
                I_Voltamperemeter,
                I_Voltmeter,
                I_Amperemeter,
                I_HydroPressure,
                I_HydroEmPressure,
                I_Turn,
                I_AH,
                I_DirectionIndicator,
                I_SlavedCompass,
                I_Suction,
                I_AFN,
                I_ADF,
                I_RDF,
                I_RMI,
                I_FLRC,
                I_Kurssteuerung,
                I_BombSight
            }
    
            public GameCommunications()
            {
                m_MemoryMappedFile = null;
                m_MemoryMappedViewAccessor = null;
            }
    
    
            private void OpenMMF()
            {
                try
                {
                    m_MemoryMappedFile = MemoryMappedFile.OpenExisting("CLODDeviceLink", MemoryMappedFileRights.Read);
                    m_MemoryMappedViewAccessor = m_MemoryMappedFile.CreateViewAccessor(0, 10000 * sizeof(double), MemoryMappedFileAccess.Read);
                }
                catch(Exception e)
                {
                    return;
                }
            }
    
            public double GetParameter(ParameterTypes ParameterType, int SubType)
            {
                if (m_MemoryMappedFile == null)
                        OpenMMF();
    
                try
                {
                    return m_MemoryMappedViewAccessor.ReadDouble((((int)ParameterType * 10) + SubType) * sizeof(double));
                }
                catch (Exception e)
                {
                    return -99999.99999;
                }
            }
        }
    }
    Enjoy!

  2. Likes ATAG_Lord Wukits liked this post
  3. #2
    ATAG_Colander's Avatar
    Join Date
    Nov 2011
    Location
    Bir Tawil
    Posts
    11,128
    Post Thanks / Like
    Total Downloaded
    255.73 MB

    Re: TF DeviceLink like interface

    Is any one using this?

  4. #3
    ATAG Member ATAG_Lolsav's Avatar
    Join Date
    Jun 2012
    Posts
    4,684
    Post Thanks / Like
    Blog Entries
    1
    Total Downloaded
    16.32 MB

    Re: TF DeviceLink like interface

    To my knowledge its usefull to those who have panels.. i only have what i see on my monitor. Not even a G15 keyboard with display.. those could have some use. Althought maybe it could have some use to X52 Saitek MDF display, but theres a bug with 64 bit drivers, does not display characters correctly, they get scrambled, so, getting readings its more like a guess game.

  5. #4
    Supporting Member DK_'s Avatar
    Join Date
    Mar 2012
    Posts
    108
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Would be nice to set up some engine/flight instruments on another screen or tablet device (wifi, bluetooth, usb, etc).

    I have seen some things like this in racing sims but it is way beyond my abilities to set up.
    ---o-0-o---

  6. #5
    Student Pilot
    Join Date
    Feb 2013
    Posts
    5
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Nice feature. Thats what I have waited for since the release of CLOD . Now I hope that CLOD will be beimplemented into HELIOS or to the nice USB devices that have been anounced in that threat: http://forums.eagle.ru/showthread.php?t=100076.

  7. #6
    Student Pilot
    Join Date
    Feb 2013
    Posts
    1
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Good job

    Could you please explain to me what is the meaning of the prefixes (M, C, A, Z, S, I)?

    Thank you.

  8. #7
    ATAG_Colander's Avatar
    Join Date
    Nov 2011
    Location
    Bir Tawil
    Posts
    11,128
    Post Thanks / Like
    Total Downloaded
    255.73 MB

    Re: TF DeviceLink like interface

    Maybe because of this:
    Quote Originally Posted by ATAG_Colander View Post
    - Only the data available in instruments for the airplane being flown will be available. This means, for example, that if you the plane you are flying does not have an altimeter, you will not receive values for the altimeter.

  9. #8
    Novice Pilot
    Join Date
    Sep 2013
    Posts
    33
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Sadly not, the airplane definitely did have an altimeter and an airspeed indicator. Unless I'm mistaken and I'm not using the right parameters, I wasn't entirely sure what the I_ C_ Z_ etc stood for ... but I_ seemed to be instruments to me, so I'm guessing I_Altitude and I_VelocityIAS should work ...
    Last edited by Tomsk; Sep-14-2013 at 17:08.

  10. #9
    ATAG_Colander's Avatar
    Join Date
    Nov 2011
    Location
    Bir Tawil
    Posts
    11,128
    Post Thanks / Like
    Total Downloaded
    255.73 MB

    Re: TF DeviceLink like interface

    Try I_VelocityIAS with -1 as the parameter.

  11. #10
    Novice Pilot
    Join Date
    Sep 2013
    Posts
    33
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Quote Originally Posted by ATAG_Colander View Post
    Try I_VelocityIAS with -1 as the parameter.
    Okay yes that works. That's pretty odd, some of the parameters are accessible at 0 index ... some at -1. Why not put all of them starting at index 0?

    So the only other issue is that I_VelocityIAS (and many of the other parameters) change units depending on what plane you are in. So in a Bf109 I_VelocityIAS gives kmph, in a Spitfire it gives mph. This makes compatibility with UDPSpeed complicated, because IL2 DeviceLink always uses the same units irrespective of the plane. Since you don't know whether the numbers from CoD are in mph or kmph you can't automatically convert them to the right values for the DeviceLink protocol.

    IMO there are quite a lot of advantages to using fixed units for the parameters. It's generally very easy to adjust a gauge to display in mph even if the input data is kmph, but without fixed units it's impossible to make a set of generic gauges that are usable for every plane. Not having fixed units also makes compatibility with existing tools and protocols difficult, as all of the protocols I know are built around fixed units.

  12. #11
    Ace bolox's Avatar
    Join Date
    Dec 2012
    Posts
    561
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    I agree having different units makes things slightly complicated, however it appears that the units of measurement are based on nationality - so it would 'only' require a set of RAF gauges and a set of Luftwaffe gauges- the RAF ones just needing some 'conversion' in the UDP ini's for the relevant gauge sets.

    For users of physical gauges, motion cockpits etc things are more difficult

  13. #12
    Novice Pilot
    Join Date
    Jan 2014
    Posts
    51
    Post Thanks / Like
    Total Downloaded
    131.89 MB

    Re: TF DeviceLink like interface

    Quote Originally Posted by Tomsk View Post
    Okay yes that works. That's pretty odd, some of the parameters are accessible at 0 index ... some at -1. Why not put all of them starting at index 0?

    So the only other issue is that I_VelocityIAS (and many of the other parameters) change units depending on what plane you are in. So in a Bf109 I_VelocityIAS gives kmph, in a Spitfire it gives mph. This makes compatibility with UDPSpeed complicated, because IL2 DeviceLink always uses the same units irrespective of the plane. Since you don't know whether the numbers from CoD are in mph or kmph you can't automatically convert them to the right values for the DeviceLink protocol.

    IMO there are quite a lot of advantages to using fixed units for the parameters. It's generally very easy to adjust a gauge to display in mph even if the input data is kmph, but without fixed units it's impossible to make a set of generic gauges that are usable for every plane. Not having fixed units also makes compatibility with existing tools and protocols difficult, as all of the protocols I know are built around fixed units.
    Did you get this to work?

  14. #13
    Supporting Member
    Join Date
    Dec 2011
    Posts
    1,009
    Post Thanks / Like
    Total Downloaded
    820.0 KB

    Re: TF DeviceLink like interface

    It was a good joke, too.

    Sent from my SM-G900V using Tapatalk

  15. #14
    Student Pilot
    Join Date
    Oct 2015
    Posts
    1
    Post Thanks / Like
    Total Downloaded
    243.96 MB

    Re: TF DeviceLink like interface

    Quote Originally Posted by ATAG_Colander View Post
    Just another goodie in the TF release. A "DeviceLink" like readonly interface.

    - It accepts the same parameters as the "GetParameters" function for missions.
    - Only the data available in instruments for the airplane being flown will be available. This means, for example, that if you the plane you are flying does not have an altimeter, you will not receive values for the altimeter.
    - It has not been fully tested so it might have some bugs (i.e. missing information which is available in instruments).
    - Run it in a timer to get periodic updates.
    Those who know programming will know what can be done with it

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO.MemoryMappedFiles;
    
    namespace DeviceLinkServer
    {
        public class GameCommunications
        {
            private MemoryMappedFile m_MemoryMappedFile;
            private MemoryMappedViewAccessor m_MemoryMappedViewAccessor;
            public enum ParameterTypes
            {
                Nil,
                M_Random,
                M_Shake,
                M_CabinDamage,
                M_CabinState,
                M_NamedDamage,
                M_SystemWear,
                M_Health,
                C_Steering,
                C_Brake,
                C_Throttle,
                C_Trigger,
                C_Pitch,
                C_Mix,
                C_WaterRadiator,
                C_OilRadiator,
                C_RadiatorAutomation,
                C_PitchAutomation,
                C_Compressor,
                C_Afterburner,
                C_BoostEnabler,
                C_SlowRunningCutOut,
                C_Magneto,
                C_Feather,
                C_CarbHeater,
                C_HatchDoor,
                C_HatchJettison,
                C_Timer,
                C_Timer1,
                C_Aileron,
                C_Elevator,
                C_Rudder,
                C_AileronTrim,
                C_ElevatorTrim,
                C_RudderTrim,
                C_TailwheelLock,
                C_LandingFlap,
                C_LeadingEdgeSlats,
                C_Undercarriage,
                C_UndercarriageEmergency,
                C_BombBayDoor,
                C_Airbrake,
                C_FuelTankSelector,
                C_TelepirometroElettrico,
                C_AltimeterPinion,
                C_AnemometroPinion,
                C_BombSight,
                C_Sight,
                C_Bombenabwurfgerat,
                C_KraftstoffSelector,
                C_LiquidGauge0,
                C_LiquidGauge1,
                C_PriLights,
                C_SecLights,
                C_SightLights,
                C_PitotHeater,
                C_Handpumpe,
                C_RadTXRX,
                C_RadPriNav,
                C_RadSecNav,
                C_Kurssteuerung,
                A_Steering,
                A_Brake,
                A_Aileron,
                A_Elevator,
                A_Rudder,
                A_AileronTrim,
                A_ElevatorTrim,
                A_RudderTrim,
                A_Undercarriage,
                A_UndercarriageShock,
                A_UndercarriageWheel,
                A_HatchDoor,
                A_BombBayDoor,
                A_ImpellerAngle,
                A_ImpellerAngularVelocity,
                A_ImpellerUnfold,
                A_LandingFlap,
                A_Airbrake,
                A_EngineAirRadiator,
                A_EngineWaterRadiator,
                A_EngineOilRadiator,
                A_LeadingEdgeSlat,
                Z_Coordinates,
                Z_Orientation,
                Z_Overload,
                Z_AltitudeAGL,
                Z_AltitudeMSL,
                Z_VelocityIAS,
                Z_VelocityTAS,
                Z_VelocityMach,
                Z_AmbientAirTemperature,
                S_ElectricVoltage,
                S_ElectricIncandescingRatio,
                S_ElectricAmperage,
                S_ElectricPrimaryPitLight,
                S_ElectricSecondaryPitLight,
                S_ElectricSightLight,
                S_FuelReserve,
                S_HatchDoor,
                S_UndercarriageValve,
                S_PneumoContainerPressure,
                S_PneumoLinePressure,
                S_HydroPressure,
                S_HydroReserve,
                S_Sturzanlage,
                S_GunOperation,
                S_GunReserve,
                S_GunClipReserve,
                S_BombReserve,
                S_Fenster,
                S_PitotHeater,
                S_Bombenabwurfgerat,
                S_Turret,
                M_Reserved000,
                M_Reserved001,
                M_Reserved002,
                M_Reserved003,
                M_Reserved004,
                M_Reserved005,
                M_Reserved006,
                M_Reserved007,
                M_Reserved008,
                M_Reserved009,
                M_Reserved00A,
                M_Reserved00B,
                M_Reserved00C,
                M_Reserved00D,
                M_Reserved00E,
                M_Reserved00F,
                M_Reserved010,
                M_Reserved011,
                M_Reserved012,
                M_Reserved013,
                M_Reserved014,
                M_Reserved015,
                M_Reserved016,
                M_Reserved017,
                M_Reserved018,
                M_Reserved019,
                M_Reserved01A,
                M_Reserved01B,
                M_Reserved01C,
                M_Reserved01D,
                M_Reserved01E,
                M_Reserved01F,
                I_Timer,
                I_AmbientTemp,
                I_EngineRPM,
                I_EngineManPress,
                I_EngineBoostPress,
                I_EngineWatPress,
                I_EngineOilPress,
                I_EngineFuelPress,
                I_EngineWatTemp,
                I_EngineRadTemp,
                I_EngineOilTemp,
                I_EngineOilRadiatorTemp,
                I_EngineTemperature,
                I_EngineCarbTemp,
                I_Pitch,
                I_VelocityIAS,
                I_Altitude,
                I_Variometer,
                I_Slip,
                I_MagneticCompass,
                I_RepeaterCompass,
                I_Peilzeiger,
                I_FuelReserve,
                I_LiquidReserve,
                I_Voltamperemeter,
                I_Voltmeter,
                I_Amperemeter,
                I_HydroPressure,
                I_HydroEmPressure,
                I_Turn,
                I_AH,
                I_DirectionIndicator,
                I_SlavedCompass,
                I_Suction,
                I_AFN,
                I_ADF,
                I_RDF,
                I_RMI,
                I_FLRC,
                I_Kurssteuerung,
                I_BombSight
            }
    
            public GameCommunications()
            {
                m_MemoryMappedFile = null;
                m_MemoryMappedViewAccessor = null;
            }
    
    
            private void OpenMMF()
            {
                try
                {
                    m_MemoryMappedFile = MemoryMappedFile.OpenExisting("CLODDeviceLink", MemoryMappedFileRights.Read);
                    m_MemoryMappedViewAccessor = m_MemoryMappedFile.CreateViewAccessor(0, 10000 * sizeof(double), MemoryMappedFileAccess.Read);
                }
                catch(Exception e)
                {
                    return;
                }
            }
    
            public double GetParameter(ParameterTypes ParameterType, int SubType)
            {
                if (m_MemoryMappedFile == null)
                        OpenMMF();
    
                try
                {
                    return m_MemoryMappedViewAccessor.ReadDouble((((int)ParameterType * 10) + SubType) * sizeof(double));
                }
                catch (Exception e)
                {
                    return -99999.99999;
                }
            }
        }
    }
    Enjoy!
    Thanks for that

  16. #15
    Supporting Member LuseKofte's Avatar
    Join Date
    Jan 2013
    Location
    Norway
    Posts
    2,394
    Post Thanks / Like
    Blog Entries
    1
    Total Downloaded
    46.2 KB

    Re: TF DeviceLink like interface

    flysimsetup_zpsz4xfpxtc.jpg

    Found a small nice Dell screen for my pit used under 10$ and installed all the pits I could find in here. Very nice, thank you everybody. Tested out the spit and blenheim pit. Worked wonderful.

    I am very grateful for this seemingly joint venture, and to Colander. I read and read this topic twice in search for HE-111 and 110 And one was working on a HE-111 . Did I miss the link?
    A little suggestion, I do not want to come out as a prick here, I usually do when I do not mean to. Is it possible to make a post for all the links in this topic. I am still not sure I found everything

    It is something about my direct way of speech and maybe a language barrier that make people think I am provoking, I am very much not. I am very grateful for this feature.
    One of the reasons I seldom fly the Blenheim is me not understanding the compass. I hope this will make it easier . Again many thanks

  17. #16
    Ace 1lokos's Avatar
    Join Date
    Jan 2012
    Posts
    5,323
    Post Thanks / Like
    Total Downloaded
    1.04 GB

    Re: TF DeviceLink like interface

    Quote Originally Posted by LuseKofte View Post
    I read and read this topic twice in search for HE-111 and 110 And one was working on a HE-111 . Did I miss the link?
    They are in the topic for download, look at tom.doniphon (the author) posts.

    This: http://theairtacticalassaultgroup.co...l=1#post127459
    Last edited by 1lokos; Nov-10-2015 at 15:18.

  18. #17
    Supporting Member LuseKofte's Avatar
    Join Date
    Jan 2013
    Location
    Norway
    Posts
    2,394
    Post Thanks / Like
    Blog Entries
    1
    Total Downloaded
    46.2 KB

    Re: TF DeviceLink like interface

    Many thanks mate. This is simply super duper

  19. #18
    Combat pilot
    Join Date
    Dec 2013
    Posts
    103
    Post Thanks / Like
    Total Downloaded
    262.05 MB

    Re: TF DeviceLink like interface

    S! All
    see below for my latest VC's for the spitfire and hurricane made for a friend

    spit.jpg

    hurri.jpg


    Steerpots(PO-T)

  20. Likes ATAG_Septic liked this post
  21. #19
    Student Pilot
    Join Date
    Feb 2013
    Posts
    5
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Quote Originally Posted by ATAG_Colander View Post
    Just another goodie in the TF release. A "DeviceLink" like readonly interface.

    - It accepts the same parameters as the "GetParameters" function for missions.
    - Only the data available in instruments for the airplane being flown will be available. This means, for example, that if you the plane you are flying does not have an altimeter, you will not receive values for the altimeter.
    - It has not been fully tested so it might have some bugs (i.e. missing information which is available in instruments).
    - Run it in a timer to get periodic updates.
    Those who know programming will know what can be done with it

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO.MemoryMappedFiles;
    
    namespace DeviceLinkServer
    {
        public class GameCommunications
        {
            private MemoryMappedFile m_MemoryMappedFile;
            private MemoryMappedViewAccessor m_MemoryMappedViewAccessor;
            public enum ParameterTypes
            {
                Nil,
                M_Random,
                M_Shake,
                M_CabinDamage,
                M_CabinState,
                M_NamedDamage,
                M_SystemWear,
                M_Health,
                C_Steering,
                C_Brake,
                C_Throttle,
                C_Trigger,
                C_Pitch,
                C_Mix,
                C_WaterRadiator,
                C_OilRadiator,
                C_RadiatorAutomation,
                C_PitchAutomation,
                C_Compressor,
                C_Afterburner,
                C_BoostEnabler,
                C_SlowRunningCutOut,
                C_Magneto,
                C_Feather,
                C_CarbHeater,
                C_HatchDoor,
                C_HatchJettison,
                C_Timer,
                C_Timer1,
                C_Aileron,
                C_Elevator,
                C_Rudder,
                C_AileronTrim,
                C_ElevatorTrim,
                C_RudderTrim,
                C_TailwheelLock,
                C_LandingFlap,
                C_LeadingEdgeSlats,
                C_Undercarriage,
                C_UndercarriageEmergency,
                C_BombBayDoor,
                C_Airbrake,
                C_FuelTankSelector,
                C_TelepirometroElettrico,
                C_AltimeterPinion,
                C_AnemometroPinion,
                C_BombSight,
                C_Sight,
                C_Bombenabwurfgerat,
                C_KraftstoffSelector,
                C_LiquidGauge0,
                C_LiquidGauge1,
                C_PriLights,
                C_SecLights,
                C_SightLights,
                C_PitotHeater,
                C_Handpumpe,
                C_RadTXRX,
                C_RadPriNav,
                C_RadSecNav,
                C_Kurssteuerung,
                A_Steering,
                A_Brake,
                A_Aileron,
                A_Elevator,
                A_Rudder,
                A_AileronTrim,
                A_ElevatorTrim,
                A_RudderTrim,
                A_Undercarriage,
                A_UndercarriageShock,
                A_UndercarriageWheel,
                A_HatchDoor,
                A_BombBayDoor,
                A_ImpellerAngle,
                A_ImpellerAngularVelocity,
                A_ImpellerUnfold,
                A_LandingFlap,
                A_Airbrake,
                A_EngineAirRadiator,
                A_EngineWaterRadiator,
                A_EngineOilRadiator,
                A_LeadingEdgeSlat,
                Z_Coordinates,
                Z_Orientation,
                Z_Overload,
                Z_AltitudeAGL,
                Z_AltitudeMSL,
                Z_VelocityIAS,
                Z_VelocityTAS,
                Z_VelocityMach,
                Z_AmbientAirTemperature,
                S_ElectricVoltage,
                S_ElectricIncandescingRatio,
                S_ElectricAmperage,
                S_ElectricPrimaryPitLight,
                S_ElectricSecondaryPitLight,
                S_ElectricSightLight,
                S_FuelReserve,
                S_HatchDoor,
                S_UndercarriageValve,
                S_PneumoContainerPressure,
                S_PneumoLinePressure,
                S_HydroPressure,
                S_HydroReserve,
                S_Sturzanlage,
                S_GunOperation,
                S_GunReserve,
                S_GunClipReserve,
                S_BombReserve,
                S_Fenster,
                S_PitotHeater,
                S_Bombenabwurfgerat,
                S_Turret,
                M_Reserved000,
                M_Reserved001,
                M_Reserved002,
                M_Reserved003,
                M_Reserved004,
                M_Reserved005,
                M_Reserved006,
                M_Reserved007,
                M_Reserved008,
                M_Reserved009,
                M_Reserved00A,
                M_Reserved00B,
                M_Reserved00C,
                M_Reserved00D,
                M_Reserved00E,
                M_Reserved00F,
                M_Reserved010,
                M_Reserved011,
                M_Reserved012,
                M_Reserved013,
                M_Reserved014,
                M_Reserved015,
                M_Reserved016,
                M_Reserved017,
                M_Reserved018,
                M_Reserved019,
                M_Reserved01A,
                M_Reserved01B,
                M_Reserved01C,
                M_Reserved01D,
                M_Reserved01E,
                M_Reserved01F,
                I_Timer,
                I_AmbientTemp,
                I_EngineRPM,
                I_EngineManPress,
                I_EngineBoostPress,
                I_EngineWatPress,
                I_EngineOilPress,
                I_EngineFuelPress,
                I_EngineWatTemp,
                I_EngineRadTemp,
                I_EngineOilTemp,
                I_EngineOilRadiatorTemp,
                I_EngineTemperature,
                I_EngineCarbTemp,
                I_Pitch,
                I_VelocityIAS,
                I_Altitude,
                I_Variometer,
                I_Slip,
                I_MagneticCompass,
                I_RepeaterCompass,
                I_Peilzeiger,
                I_FuelReserve,
                I_LiquidReserve,
                I_Voltamperemeter,
                I_Voltmeter,
                I_Amperemeter,
                I_HydroPressure,
                I_HydroEmPressure,
                I_Turn,
                I_AH,
                I_DirectionIndicator,
                I_SlavedCompass,
                I_Suction,
                I_AFN,
                I_ADF,
                I_RDF,
                I_RMI,
                I_FLRC,
                I_Kurssteuerung,
                I_BombSight
            }
    
            public GameCommunications()
            {
                m_MemoryMappedFile = null;
                m_MemoryMappedViewAccessor = null;
            }
    
    
            private void OpenMMF()
            {
                try
                {
                    m_MemoryMappedFile = MemoryMappedFile.OpenExisting("CLODDeviceLink", MemoryMappedFileRights.Read);
                    m_MemoryMappedViewAccessor = m_MemoryMappedFile.CreateViewAccessor(0, 10000 * sizeof(double), MemoryMappedFileAccess.Read);
                }
                catch(Exception e)
                {
                    return;
                }
            }
    
            public double GetParameter(ParameterTypes ParameterType, int SubType)
            {
                if (m_MemoryMappedFile == null)
                        OpenMMF();
    
                try
                {
                    return m_MemoryMappedViewAccessor.ReadDouble((((int)ParameterType * 10) + SubType) * sizeof(double));
                }
                catch (Exception e)
                {
                    return -99999.99999;
                }
            }
        }
    }
    Enjoy!

    Hi ATAG_Colander. Thanks a lot for the ability to have always a fixed cockpit to look at. This function is very very handy. I have only one question - will this be adapted to further patches?

  22. #20
    Student Pilot
    Join Date
    Mar 2017
    Posts
    3
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Hello!
    I can't get this to work.
    I run VC, hit Start (F9), then start CloD and go to fly. But messages 'No connection' and 'Can't open DeviceLink. Code 2' appear in my 2nd monitor.
    Help please!

  23. #21
    Combat pilot Perfesser's Avatar
    Join Date
    Aug 2015
    Location
    Canada
    Posts
    173
    Post Thanks / Like
    Total Downloaded
    3.69 MB

    Re: TF DeviceLink like interface

    Quote Originally Posted by fox70 View Post
    Hello!
    I can't get this to work.
    I run VC, hit Start (F9), then start CloD and go to fly. But messages 'No connection' and 'Can't open DeviceLink. Code 2' appear in my 2nd monitor.
    Help please!
    And that's exactly what you should see until your plane spawns in. Just as the readme says.
    If it still doesn't work be sure the VC exe is in the same folder as the launcher exe
    Last edited by Perfesser; Mar-11-2017 at 10:58.

  24. #22
    Student Pilot
    Join Date
    Mar 2017
    Posts
    3
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Yes, I know. But when I start flying, it is nothing to happens. I'm still seeing message 'No connection'.
    I replace VC files in the same folder as the launcher exe, but it didn't help.

  25. #23
    Student Pilot
    Join Date
    Mar 2017
    Posts
    3
    Post Thanks / Like
    Total Downloaded
    0

    Re: TF DeviceLink like interface

    Should I install the Team Fusion Patch first? Now i installed only patch 1.11 from Steam.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •