import krpc import time import math import os; print 'Connecting to server...'; ksp = krpc.connect(name='Aucoustic Landing Help'); print 'Connected to server, version' , ksp.krpc.get_status().version; vessel = ksp.space_center.active_vessel; orbit = vessel.orbit; control = vessel.control; flight = vessel.flight(); resources = vessel.resources; def main(): global vessel,orbit,control,flight,resources; count = 0; k = 0; while True: i = 0.5; if(round(flight.true_altitude,2) < 1000): speed = flight.vertical_speed; j = round(speed) - 10; count = count + 1; if j < -60: k = 1; elif j < -50: k = 2; elif j < -40: k = 3; elif j < -30: k = 4; elif j < -25: k = 5; elif j > -20: k = 8; if(k <= count): print "\a Running " + str(k); count = 0; time.sleep(float(i)); main();