Coder Social home page Coder Social logo

msfs_simconnect_go's Introduction

msfs_simconnect_go

Originally forked from https://github.com/lian/msfs2020-go

Intro

Accessing the MSFS simconnect API from a separate (Windows) executable, using the Go language.

The idea is to connect to the MSFS 'sim' world via two mechanisms:

  1. Using a loop in the Go program which peridically 'requests' data from MSFS (this 'polling' is the method originally forked from msfs2020-go).

  2. Registering a 'callback' so the sim can send data to the Go program when appropriate in the MSFS update cycle (this is a much more sensible way to communicate with MSFS).

The Go programming language (aka Golang) provides as standard HTTP/web support including websockets, so this Go/simconnect support can communicate with other programs on remote machines via a websocket if required.

Installation

Install Golang Git Clone https://github.com/ijl20/msfs_simconnect_go

cd msfs_simconnect_go
go build -ldflags "-s -w" ./vfrmap
./vfrmap.exe

cross-compiles from macos/linux, no other dependencies required. produces a single binary with no other files or configuration required.

Status

msfs_simconnect_go/simconnect package currently only implements enough of the simconnect api for examples and vfrmap.

Releases and download

program zips releases are uploaded here

Examples

  • vfrmap local web-server that will allow you to view your location, and some information about your trajectory including airspeed and altitude.

  • examples/request_data port of MSFS-SDK/Samples/SimConnectSamples/RequestData/RequestData.cpp

Support notes

Why does my virus-scanning software think this program is infected?

From official golang website https://golang.org/doc/faq#virus

"This is a common occurrence, especially on Windows machines, and is almost always a false positive. Commercial virus scanning programs are often confused by the structure of Go binaries, which they don't see as often as those compiled from other languages."

msfs_simconnect_go's People

Contributors

ip999 avatar lian avatar xp-soaring avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.