github untoldwind/KontrolSystem2 v0.5.7.5

latest releases: v0.5.9.5, v0.5.9.4, v0.5.9.3...
pre-release3 months ago
  • The ? operator can now also be used on Option<T> in functions that return a Result<T>
    • Example:
      pub fn main_flight(vessel: Vessel) -> Result<Unit> = {
          const target = vessel.target? // <-- Will fail with error if vessel has no target
      }
      
  • VSCode extension now tries to read reference.json from the currently installed version of KontrolSystem2
    • It will no longer be necessary to update the extension with every release to make a (small) API change visible in
      VSCode
  • Add .is_empty and .is_not_empty to arrays
  • Basic bindings for waypoints
    • Add body.waypoints
    • Add ksp::orbit::find_waypoint(name: string)
  • Fix: WheelThrottleManager is now doing what its name suggests
  • Make cleaner distinction between orbit and orbit patch:
    • ksp::orbit::Orbit is not more (or less) then a standalone Kepler orbit that can be used for orbital calculation
    • ksp::orbit::OrbitPatch is a section of a Kepler orbit that is part of a ksp::orbit::Trajectory of a vessel
    • vessel.trajectory now returns a ksp::orbit::Trajectory, for compatibility ksp::orbit::Trajectory can be used
      (almost) like a ksp::orbit::OrbitPatch[] (i.e. it can be used in a for loop and vessel.trajectory[0] still works)
    • Properties ein vessel.maneuver have been updated accordingly
  • Add true_anomaly_at_ut(ut: float) to ksp::orbit::Orbit

Don't miss a new KontrolSystem2 release

NewReleases is sending notifications on new releases.