Giter Club home page Giter Club logo

kerbal2's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andymt

kerbal2's Issues

Issue with glib

Hi,
I just starting with TO2, and your code seems to be a good starting point.

Unfortunatly, It seems to be issue in the glib.
I can't boot KS2

Rebooted in 00:00:01.7258968
ERROR: [glib\transfer.to2(61, 132)] IncompatibleTypes
Cannot BitXor a float with a int
ERROR: [glib\transfer.to2(61, 45)] ArgumentMismatch
Argument d of 'sqrt' has to be a float, but Unit was given
ERROR: [glib\transfer.to2(67, 78)] IncompatibleTypes
Cannot BitXor a float with a float
ERROR: [glib\transfer.to2(67, 18)] IncompatibleTypes
Cannot Mul a float with a Unit
ERROR: [glib\transfer.to2(67, 122)] IncompatibleTypes
Cannot BitXor a Unit with a float
ERROR: [glib\transfer.to2(66, 5)] IncompatibleTypes
Function 'hohmannTime' returns Unit but should return float

I try to make some change, with no succes. I have to read the TO2 specs ;)

The first line in error :

sync fn hohmannPhaseAngle(self, alt_start: float, alt_end: float, o: Orbit) -> float = {
    return 180*(1-(1/(2*sqrt(float2))*sqrt((1+(alt_start+o.reference_body.radius)/(alt_end+o.reference_body.radius))^3)))
}

Maybe each number have to be cast as Float ?

Thx for your help,

DimiBD

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.