Skip to content

Instantly share code, notes, and snippets.

View KK4TEE's full-sized avatar

Seth Persigehl KK4TEE

View GitHub Profile
@KK4TEE
KK4TEE / rover.ks
Last active November 15, 2020 12:07
Cruise control and autopilot for rovers in Kerbal Space Program using kOS
// rover.ks
// Written by KK4TEE
// License: GPLv3
//
// This program provides stability assistance
// for manually driven rovers
set speedlimit to 10. //All speeds are in m/s
lock turnlimit to min(1, 1.5 / surfacespeed). //Scale the
//turning radius based on current speed
@KK4TEE
KK4TEE / gohome.ks
Created February 13, 2015 09:32
This program circularizes an orbit into a very low orbit and then waits for the proper time to de-orbit.
// gohome.ks
// Written by Seth Persigehl (KK4TEE)
// Released under the GPLv3 licence
// This program circularizes an orbit into a very low orbit and then waits for the proper time to de-orbit.
// Hopefully it should touch down reasonably close to the Kerbal Space Center
//Set a parking orbit that we will do the final deorbit from. This should be circular.
set LandingOrbitAltitude to 75000. //In this case, 75km up.
set deorbitBurnLNG to -170.5. //This is the longitude that we will start the deorbit burn at.
set entryPeriapsis to 0. // Target periapsis for the deorbit burn.
@KK4TEE
KK4TEE / first.ks
Last active September 18, 2023 05:30
This program for the Kerbal Space Program mod kOS launches a ship from the KSC and flies it into orbit
//first.ks
// This program launches a ship from the KSC and flies it into orbit
//Set the ship to a known configuration
SAS off.
RCS on.
lights on.
lock throttle to 0. //Throttle is a decimal from 0.0 to 1.0
gear off.