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 Can you use a little math in the Interface - Output?

Discussion in 'SimTools Pro & Entertainment Version' started by KydDynoMyte, Jan 26, 2020.

  1. KydDynoMyte

    KydDynoMyte Fool's Gold Contributor

    Joined:
    Sep 5, 2011
    Messages:
    111
    Location:
    RTP, NC
    Balance:
    92Coins
    Ratings:
    +28 / 2 / -0
    My Motion Simulator:
    3DOF
    Is it possible to use a little math in the Interface - Output like "<Axis3a>-128" to subtract 128 from the Axis3a value before simtools sends it?

    Or is it possible to shift the origin from the center of the Interface Output - Bit Range in another way? Preferably without using a companion app.
  2. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,161
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,159Coins
    Ratings:
    +5,036 / 16 / -0
    What you trying to do buddy?
    If you shift the center point and still use the full range its a bit lopsided?
    Or maybe you have something else in mind?
    Chat soon,
    yobuddy
  3. KydDynoMyte

    KydDynoMyte Fool's Gold Contributor

    Joined:
    Sep 5, 2011
    Messages:
    111
    Location:
    RTP, NC
    Balance:
    92Coins
    Ratings:
    +28 / 2 / -0
    My Motion Simulator:
    3DOF
    I might like to be a little lopsided in pitch since I have more back pitch than forward pitch.

    But in this case I am just trying have a very simple way to send 0 to 255 to a device instead of -128 to 127. It accepts 0 to 255 and I don't have the ability to change it.
  4. KydDynoMyte

    KydDynoMyte Fool's Gold Contributor

    Joined:
    Sep 5, 2011
    Messages:
    111
    Location:
    RTP, NC
    Balance:
    92Coins
    Ratings:
    +28 / 2 / -0
    My Motion Simulator:
    3DOF
    Sorry had just woke up and worded that bad. My chair will vibrate with values 0 to 255. I would just like a simple way to add an axis and have it output starting from 0 so it will be easy for everyone with the same chair to get some vibration tied to a force. So -256 to 255 be the range instead of 0 to 511. For example. The vibration is plenty strong at 60 in reality, so I really only plan on using an 8 bit range and limiting it close to 60 in axis limiting.

    Being able to drop the negative for reverse forces would be great too, but would be happy with forward only for now.
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    What is creating the 'vibration', a rumble motor, transducer, actuator or something else?

    There is GameDash for the likes of rumble motors, GameVibe for transducers, and lots of options for refining profiles for the likes of actuators. But at the moment it is not really clear what you are trying to achieve and what hardware is involved, so a bit more detail would be really helpful.
  6. KydDynoMyte

    KydDynoMyte Fool's Gold Contributor

    Joined:
    Sep 5, 2011
    Messages:
    111
    Location:
    RTP, NC
    Balance:
    92Coins
    Ratings:
    +28 / 2 / -0
    My Motion Simulator:
    3DOF
    The same motors that move the chair provide the shake. Just trying to achieve it without a companion app so it'd even work for LFS and the demo of simtools.
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,535
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,034Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Please specify the hardware and its specs that you are using.
  8. KydDynoMyte

    KydDynoMyte Fool's Gold Contributor

    Joined:
    Sep 5, 2011
    Messages:
    111
    Location:
    RTP, NC
    Balance:
    92Coins
    Ratings:
    +28 / 2 / -0
    My Motion Simulator:
    3DOF
    It's a Yaw MS, currently the vibration input takes a value of 0-255 for the amplitude, and you can set the Hz. So the interface - output would be something like: V[amp,Hz] so V[<Axis4a>,15].

    Apparently it's not something that can be done without a companion app. No big deal. I think they'll change the way it works with the range to be simtools compatible in one of the next updates. Then it'll work well in reverse too.

    Just thought there might be a format to using math in the interface - output.
  9. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,161
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,159Coins
    Ratings:
    +5,036 / 16 / -0
    I'm not completely sure what we are running here, but a custom interface plugin could be utilized here for proper support.
    If just depends on whats needed really. (or that i understand how your running the sim anyway.)
    Take care,
    yobuddy