1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

(Resolved - user error) Yaw issue with DCS plugin and G-Seat

Discussion in 'Digital Combat Simulators (DCS)' started by RiftFlyer, May 7, 2016.

  1. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    I've been playing around with sim tools all evening and have come across an issue with yaw in this plugin. Perhaps somebody could help.

    I'm testing with a helicopter and have the yaw setup on the two actuators on my backrest. As I turn in a hover the yaw pressure increases continuously unitl it hits the limit and then the actuators quickly zero. It's as if the yaw value is based on intial heading and are referencing the compass rather than an aerodynamic force.

    Has anyone experienced this?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,549
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,112Coins
    Ratings:
    +10,778 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I am guessing you mean SimTools flips from one axis extreme to the other at 180 degrees. If so then that is the limit of the software.

    You would normally use the washout filter but I find the smoothing filter works better on a pitch and roll axis, so am guessing Yaw would likely benefit as well. That gives the sensation of maintaining the axis at its extreme until you release and it then smooths back to the neutral position.
  3. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    Thanks @noorbeast I'll read up on the filters. I understand why the need for reversing on pitch and roll as you pass 180degrees as the gravity vector changes. In yaw that doesn't happen. In a constant pirouette in a helicopter the force should be relative to the rate of change in the yaw axis. The force doesn't flip after turning 180 degrees as unlike pitch and roll the gravity vector is constant. Is this limitation of Sim Tools something that can be overcome?

    I will experiment further with yaw today. If this is a software limitation then I'm surprised nobody else spoke of it in the dcs plugin section.
  4. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,574
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Yaw/pitch/roll are not forces, but are changes in orientation due to Rotation - the forces related to these changes/'Translations' in orientation are called sway/surge/heave. Yaw/pitch/roll is therefore purely based on a change in heading on these three axis's and has limitations as you have found in simtools. You could get around these limitation by writing suitable code in your controller if you are building a 360 degree capable sim - but most don't need or use it. Hope that helps.
    • Informative Informative x 1
  5. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    @SeatTime i have no need for 360 degree code. I'm building a gseat. Should I therefore use sway instead of yaw to achieve a constant pressure while performing a pirouetting maneuver?
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,549
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,112Coins
    Ratings:
    +10,778 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    That should work.
    • Like Like x 1
  7. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    Thanks @noorbeast and @SeatTime

    I've completed a modification to my backrest and will try with sway once I get everything reinstalled.
    Last edited: May 8, 2016
  8. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,574
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Agree with @noorbeast , I actually don't use yaw at all and barely any roll/pitch (depends on game/vehicle), as I find it can distort what I should be feeling, especially with the Rift.
    • Like Like x 1
  9. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,574
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Although don't forget that for example a yaw is not always purely a sway (although mostly), as there may be a surge component, or even a small heave force generated. It is why creating a good profile can take some time as it can be a mix of all forces for most axis's.
    • Agree Agree x 1
  10. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    Thanks @SeatTime

    My plan for now is to leave out yaw and try sway on the backrest. I will then experiment with surge. Unlike yaw pitch seemed to be working quite well but I haven't spent much time going inverted in a helicopter!

    I've yet to complete the base of the seat where I will have heave.

    So for the rift do you think that heave/sway for the base and surge/sway for the backrest may yield the best results?
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,549
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,112Coins
    Ratings:
    +10,778 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I think that would be the best combination to start with for a chopper (yaw), though roll is applicable for an aircraft.
    • Agree Agree x 1
  12. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
  13. Historiker

    Historiker Dramamine Adict Gold Contributor

    Joined:
    Dec 16, 2010
    Messages:
    2,158
    Occupation:
    Retired
    Location:
    Michigan USA
    Balance:
    9,176Coins
    Ratings:
    +2,159 / 19 / -1
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    You might get together with @hugso he has a great deal of experience with DCS in his project. I know what you mean as I ran into it with my 6DoF project but have never looked further into it.
  14. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    Thanks @Historiker. I sent @hugso a message but he has not used DCS in a long time. I managed to find another version of the DCS plugin which does not have heave mixed up with sway. Unfortunately the resulting sway force is not working as expected when used as a substitute for yaw. I am currently uploading a video of a tuning flight I saved in the Rift and the associated tuning centre view. This should clearly illustrate the issues I'm having with sideways and pirouetting flight.

    I believe the plugin needs another value in order to simulate the forces associated with these phases of flight. Those familiar with aviation will know of the turn and bank indicator which is one of the basic six flight instruments. It will indicate when the aircraft is in a slip or slide. It can be called by "local slipball = LoGetSlipBallPosition()" in the eport.lua file. If this value could be added as an extra force in the plugin I think it may resolve my issues.

    As suggested I also tried surge in place of pitch. The effect actually doesnt work too well in a helicopter. As the helicopter accelerates it adopts a nose down attitude which should result in a lowering of pressure from the rear of the seat. The usual surge force would be therefore inverted. I ended up reverting to pitch. Now that I think of it I could try it with the output reversed. Not sure if that will cause issues with other phases of flight though.

    I'll post a link to my tuning video once it is uploaded.
  15. Adrianstealth

    Adrianstealth Active Member

    Joined:
    Nov 18, 2010
    Messages:
    158
    Occupation:
    director
    Location:
    england
    Balance:
    328Coins
    Ratings:
    +37 / 0 / -0
    My Motion Simulator:
    SCN6, 4DOF
    I'm enjoying the DCS plug in but would love the roll and yaw 180 degree to be sorted

    So it flips as soon as 180 degree is passed, I think its possible because the pitch does it perfect
  16. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    @Adrianstealth the roll, pitch and yaw values are rotations measured in degrees. For forces you should experiment with sway, surge and heave. I made this error initially and that is why this thread exists. As you can see above I was corrected.

    As stated in the other thread Sway is actually outputting Heave. Surge is correct but the output from heave which I'd expect to be sway (given the other error) seems to be incorrect.

    I have completed a function to call the value of the slip ball and assign it as an extra variable to be passed to SimTools. Unfortunately, I am unable to compile a new plugin from the source code provided to me by @value1. I am not a programmer so I can't tell what I'm doing wrong. I can build a new .dll but when I patch it says not a valid plugin. It also throws a debug error even without me modifying anything! On Friday I sent @value1 a modified export.lua along with a copy of the function and a note regarding the heave/sway mix up in the hope he can compile a new plugin. Fingers crossed he can review the plugin, make changes or perhaps advise me on what I'm doing wrong with the source code he provided.
  17. Adrianstealth

    Adrianstealth Active Member

    Joined:
    Nov 18, 2010
    Messages:
    158
    Occupation:
    director
    Location:
    england
    Balance:
    328Coins
    Ratings:
    +37 / 0 / -0
    My Motion Simulator:
    SCN6, 4DOF
    Riftflyer

    Ok Brill a big thanks for your efforts on this & its great you share

    The sway and heave is fine (I know the name mix up but that's minor )

    Its the roll 180 degree flip ( actuators quickly moving to other side to follow aircraft angle )
    The pitch handles it great and correctly ( actuators simply follow in reverse at 180 degree point )

    Thus the roll effect is unusable even with all the extra setting combinations

    Be really great if roll could work as the pitch does, I'm not using roll at all sue to this

    With pitch doing loop the loops feels Brill

    Not moaning at you, wish I knew how to do make these plug-in's myself but zero knowledge
  18. RiftFlyer

    RiftFlyer Active Member Gold Contributor

    Joined:
    Apr 15, 2014
    Messages:
    195
    Balance:
    1,693Coins
    Ratings:
    +120 / 0 / -0
    My Motion Simulator:
    DC motor
    I've managed to compile the modified plugin and get it working with the added slipball force. I've tested it and it works well. I wanted it for helicopters but it also gives good effects on my G-Seat in fixed wing aircraft.

    Taxiing the p51 now provides good lateral forces when turning due to the tail wheel steering and a lateral force during uncoordinated flight when in a slip or slide. Big thanks to @value1 for allowing me work with his source code.

    @Adrianstealth an alternative to roll (which I find is working as it should) could be to use stick position to output a force. This would be of no use to me in helicopters as control stick position does not correspond to aircraft attitude but it could work with the old warbirds. Instead of roll you could read the X axis aileron control and output a corresponding force based on the amount of deflection. I may look into this after I make a little more progress on my seat. I've been buried in code for too long and need to get back to building!
    • Like Like x 1
  19. Historiker

    Historiker Dramamine Adict Gold Contributor

    Joined:
    Dec 16, 2010
    Messages:
    2,158
    Occupation:
    Retired
    Location:
    Michigan USA
    Balance:
    9,176Coins
    Ratings:
    +2,159 / 19 / -1
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform, 6DOF
    Hi @RiftFlyer, can you share your new plugin with us? I would like to try it out myself as soon as my own g-seat is finished. I have my heave mechanism done (and working well).
  20. Adrianstealth

    Adrianstealth Active Member

    Joined:
    Nov 18, 2010
    Messages:
    158
    Occupation:
    director
    Location:
    england
    Balance:
    328Coins
    Ratings:
    +37 / 0 / -0
    My Motion Simulator:
    SCN6, 4DOF
    thanks for update rift

    I'll hold out until update with non flip roll if this comes

    I think stick forces may seem canned to me compared to making the best of physics based forces

    is valve1 intending to do further work on this plugin I wonder?

    anyhow thanks for doing what you can rift flyer


    ps flip at 180 degrees I think would be fine in a g-seat, but it's awful on a seat rocker type setup such as mine )-:

    I have PM'd valve1 to see if a fix can be done , even a roll that behaves like the pitch at 180 degrees can be put on extra1 so people can choose etc
    Last edited: May 23, 2016