Categorygithub.com/flysim-apps/simgo
modulepackage
1.2.0
Repository: https://github.com/flysim-apps/simgo.git
Documentation: pkg.go.dev

# README

SimGo Connect

Current version: v1.0.0

Library provides abilitu to connect Microsoft Flight Simulator 2020 using SimConnect (SimConnect.dll) and get/set data from/to it.

Written in Go.

Features:

  • built-in web sockets
  • re-connection in case of any stucks
  • predefined set of variables which will be enough for the first use, but this list is fully customizable

ToDo:

  • work with SimConnect events
  • work w/o web sockets

Getting Started

Make sure that you have copy of SimConnect.dll on root of your go project (you can copy dll provided in this repo). Otherwise you will get an error.

func main() {
    
    sim := simgo.NewSimGo(logging.MustGetLogger("simgo"))
    
    if err := sim.StartWebSocket(":4050"); err != nil {
       panic(err.Error())
    }

    sim.TrackWithRecover("simgo", simgo.Report{}, 5, 1)

    ...

You will set connection to Microsoft Flight Simulator 2020 and get notifications like this:

    ...
    go func() {
        for {
            select {
            case result := <-sim.TrackEvent:
                report := result.(simgo.Report)
                ...
                // do your stuff here
                ...
            }
        }
    }()
}    

Known Projects

# Packages

Package simconnect is a binding for FS2020 ✈️ in GO.
No description provided by the author

# Functions

No description provided by the author
creates new simgo instance.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author