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

Question Raw data output from simtools

Discussion in 'New users start here - FAQ' started by farhad, Apr 12, 2021.

  1. farhad

    farhad New Member

    Joined:
    Nov 14, 2016
    Messages:
    4
    Location:
    Iran
    Balance:
    117Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Hello people.
    I have a problem with the output data from simtools. I am trying to build a 3dof platform and I need the raw data from games. which means I want the exact roll pitch etc values from the game. I have tried to read the data from LFS and simtools both. here are the graphs :
    this is data from LFS directly :
    Screenshot (479).png

    and here is the data from simtools: (the left chart is roll & pitch positions and the right one is surge sway & heave accelerations :
    Screenshot (482).png

    these are from fairly the same motions ( ofc had to run LFS twice but tried to keep it similar to each other)
    the simtools data is very noisy and actually doesn't seem right. below is my axis settings :

    Screenshot (483).png
    the thing is I tried to check the output and see if the axis1a value is equal to the raw Roll value. so in the "output testing" tab I switched it on and captured the values. I dragged the bar from 0 to -100 then to 100 and back to 0. here is the result:
    Screenshot (481).png

    as you see it is a bit scrambled. what I was expecting is this :
    Screenshot (484).png

    to summarise it I should say generally there are two problems :
    1. getting the raw data correctly from the game (i wonder if it is possible)
    2. having it in the right format (like the latest picture not the one before it)


    one more thing. I took a look at this topic (How to write an Axis Assignments (Math) Plugin for SimTools 2.0 - API documentation) and if the sample code there is the current code of Generic2d option, my axis settings should return the raw values but it doesn't look like that.
    I am not a programmer (I still know a little) and I tend to avoid programming as much as possible. it will be very kind of you if you consider this in your suggested solution :)

    many thanks in advance :)
  2. liuzhimin

    liuzhimin New Member

    Joined:
    May 10, 2021
    Messages:
    23
    Balance:
    171Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF
    If the X-axis time unit becomes smaller, it will not look so messy, and then filter, the effect will be better, although some data accuracy is lost, the seat will be softer. I have the same simtools settings as you. (I don’t know if there is an accurate expression of what I mean, because this is translated by Google)
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,539
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,052Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    @yobuddy is the best person to advise, hopefully he can chip in when he has a spare moment.
  4. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,162
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,171Coins
    Ratings:
    +5,036 / 16 / -0
    Hi @farhad,
    All the outputs from the games are automatically sent thru the Max/Min stage before being handed off to the axis assignment settings.
    So the output from simtools will depend on your Max/Min settings for the game.
    I think what may work best here is to write a custom interface for simtools that knows how to communicate with your sim.

    For example, if you set the max/min to -180 and 180 for Roll, and then set Axis1a to 100% for Roll in your axis assignments.
    You can then in your interface forward the axis1a (Roll input - which will be a number between -1 and 1 at this point) as (Roll * 180) giving you a output you want that matches the game.
    Hope that makes sense.
    Take care,
    yobuddy
    • Informative Informative x 1
  5. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    736
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,835Coins
    Ratings:
    +864 / 2 / -0
    Hey @farhad

    Without having even the slightest clue about SimTools, from the graphs you posted alone I get the impression that there might be two problems involved:

    1. Unit conversion (degrees <--> radians) and...
    2. A well intended (but for a car sim completely pointless) anti-rollover-function.
    I have analyzed plenty of motion data in my own software, and these two features in combination could explain those graphs.
    I would go one step further and say: If you told me that you were going to use a unit conversion from rad to degrees and are also using an anti rollover function that expects radians, then I would expect EXACTLY those kinds of graphs.

    First you should find out in which unit the game is sending values and in which unit SimTools expects then.
    Then disable the anti-rollover function if you can. This might not be possible, if it is baked into the plugin by the creator who had the best of intentions.
    Set the Min/Max values in Tuning center to a value that is significantly higher than any value you can ever expect to see on that respective channel. Just to be sure this doesn't interfere.

    And I hope you will post your findings here, because I would love to solve this.

    Cheers,... Dirty
  6. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    736
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,835Coins
    Ratings:
    +864 / 2 / -0
    If you look closely, in this image...
    15D20A31-5531-48F4-B8E3-D747E9DE6DA8.png
    ...the values range from negative pi to pi (-3.14 to 3.14).

    AND they seem to "roll over" from neg pi to pi.

    Imagine if you sent values to this function that are 57.296 times bigger (thats the conversion from rad to degrees), you'd see 57.296 rollovers in that image and "57.296 rollovers" is pretty much what I see here:
    964B4FC7-7801-40A6-8C54-12FB490F9A0A.png

    Does that make sense?
  7. farhad

    farhad New Member

    Joined:
    Nov 14, 2016
    Messages:
    4
    Location:
    Iran
    Balance:
    117Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    Hi @liuzhimin @noorbeast @yobuddy and @Dirty
    Thank you for your answer. Sorry I didn't check this topic after a few weeks of getting no answer because I wasn't expecting any answer anymore :grin

    @Dirty I can't really remember what I have done then, but I am pretty much sure I have checked unit conversion, anti-rollover, and all other options that are in software :D nothing worked :/
    So I started writing my own software :eek::cheers ,and I am not using simtools anymore :(
    • Creative Creative x 1
  8. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    736
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,835Coins
    Ratings:
    +864 / 2 / -0
    Oh, nice to hear that. I think writing your own software is a great way to learn about motion cueing. I did too :) Start a thread about it, I'd love to follow this.
    • Agree Agree x 1
  9. farhad

    farhad New Member

    Joined:
    Nov 14, 2016
    Messages:
    4
    Location:
    Iran
    Balance:
    117Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    sure I will do. but for now, I am really busy, and if I make it the thread would be inactive for a few weeks maybe. but I will definitely do it in a few weeks and would send a post here to let you know :)