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

Game Engine Interface - Data output

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Pixello, Feb 25, 2015.

  1. Pixello

    Pixello New Member

    Joined:
    Feb 25, 2015
    Messages:
    14
    Occupation:
    Student, Amateur designer and programmer
    Location:
    Krosno
    Balance:
    449Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor
    Hi,
    i'm building a AVR Atmega 16 hardware driver for gauges and motors and i have i question. Where can i find any information about Interface Output data format?

    I'm asking about what should I enter. I know about rs232 transmision, and i have programmed MCU to format 5 x 1 (0b00000001).
    Now MCU is at simulator mode, now he is waiting to data frame {(1), (kph + 2)/2, gear + 2 (r is 3 etc), axis horizontal, axis vertical, 2(end of frame), and mcu is waiting now for next data, until the pc sent the 5x2 frame (simulator stop).
    At game engine should i type it binary,hex, or dec, and what should i type to sent axis info.

    Thanks,
    Pixello
  2. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Ok with SimTools our Axis data is controlled and outputted by the Game Engine and for dashboard control and stuff along those lines are only controlled via the Game Dash , So to run the set of data you want you will need two separate interfaces presently.
    Or maybe another method to combine the two outputs to one output is to send the data from both via a NET interface and build a custom windows app to read the two NET ports and combine this to the serial code that you need to spend to your interface.
  3. Pixello

    Pixello New Member

    Joined:
    Feb 25, 2015
    Messages:
    14
    Occupation:
    Student, Amateur designer and programmer
    Location:
    Krosno
    Balance:
    449Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor
    I found info, that if i want to have output i have to write at example <1><Axis1><Axis2><2> at interface output at game engine intefrace tab. But can i send <(Axis1)+2>? I have my MCU connected to this same pc, but i want to get every axis info at 1 frame (8bit, char format) and i preffer to have 5 first numbers restricted to control the hardware, so i need to have Axis data always bigger than 4. If i wont get another option i just make a "hard" data packet at mcu. After i finish i'll send here pcb and code for mcu.

    Thanks for reply,
    Sorry for mistakes,
    Greeting from Poland