Git Product home page Git Product logo

ed-warthog-target-script's People

Contributors

clickernz avatar touille avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ed-warthog-target-script's Issues

ED_Warthog-Target-Script-Addon.exe sending too many messages

@Touille

Running the program with ED running.
I'm docked at Jameson Memorial and am getting flooded with updates even though the ‘Flags’ value is not changing.

This is due to the Lat/Lon (and therefore status.json) changing continuously as the station rotates.
Possibly a bug in ED as Lat/Lon shouldn't change when docked at a station in space (?)...surely!
Either way, when flying close to a planet, this same issue would be evident.

Not too sure if this was intended,however, it leads me to ask, if we are only interested in 'Flags' key value, why not test when ‘Flags’ changes instead of testing when anything in the entire string changes?

Clicker

Turning "High Beam" on in SRV throws a fatal error in ED_Warthog_Target_Script_Addon.exe

Recent addition of srvHighBeam (bit 31) in the Flags key value in status.json, when set, now causes the addon.exe program to throw a fatal error.

When bit 31 is set in the Flags key value, it causes the key value integer to exceed the maximum 32 bit signed integer value.

Changing the following to call for an unsigned integer return solves this issue;

// v_Flags = status["Flags"].GetInt();
v_Flags = status["Flags"].GetUint();

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.