This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin remote | |
name aircon | |
flags RAW_CODES | |
eps 30 | |
aeps 100 | |
gap 19991 | |
begin raw_codes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import krpc | |
from math import sin, cos, pi | |
import time | |
conn = krpc.connect(name='controller') | |
space_center = conn.space_center # SpaceCenter对象 | |
vessel = space_center.active_vessel # 当前载具 | |
body = vessel.orbit.body # 当前载具所处的天体 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
public class TimeoutAction | |
{ | |
private Thread timerThread; | |
private Thread mainThread; | |
private AutoResetEvent timerStartEvent = new AutoResetEvent(false); | |
private AutoResetEvent timerPreparedEvent = new AutoResetEvent(false); |