github untoldwind/KontrolSystem2 v0.3.3.3

latest releases: v0.5.9.5, v0.5.9.4, v0.5.9.3...
17 months ago
  • Fixed visible columns of console view
  • Fix vessel.angular_moment
  • Added helpers for steering:
    • vessel.global_toment_of_inertia
    • vessel.total_torque
  • Add std::control::steering module to control a vessel without relying on the SAS system.

Example how to use it:

use { Vessel } from ksp::vessel
use { CONSOLE } from ksp::console
use { sleep } from ksp::game
use { control_steering } from std::control::steering

pub fn main_flight(vessel: Vessel) -> Result<Unit, string> = {
    const control = control_steering(vessel)

    control.set_heading(30, 20, 10)

    for(i in 0..1000) {
        sleep(0.1)
        control.controller.print_debug()  // Print internal state of the controller
    }

    control.release()
}

Don't miss a new KontrolSystem2 release

NewReleases is sending notifications on new releases.