Launch_Manager.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:krpcScripts 作者: jwvanderbeck 项目源码 文件源码
def __init__(self, target_orbit, target_inc):
        Operations.__init__(self, target_orbit, target_inc)

        self.vessel_flight_bdy = self.conn.add_stream(self.vessel.flight, self.bdy_reference_frame())
        self.vessel_sur_speed = self.conn.add_stream(getattr, self.vessel_flight_bdy(), 'speed')
        self.latitude = self.conn.add_stream(getattr, self.vessel.flight(), 'latitude')

        self.lAz_data = self.azimuth_init()
        self.Q = self.conn.add_stream(getattr, self.vessel.flight(), 'dynamic_pressure')
        self.pitch = self.conn.add_stream(getattr, self.vessel.flight(), 'pitch')

        self.altitude = self.conn.add_stream(getattr, self.vessel.flight(), 'mean_altitude')
        self.period = self.conn.add_stream(getattr, self.vessel.orbit, 'period')

        self.pitchSet = 90
        self.azimuthSet = 90
        self.pitchRate = 1.6
        self.onInsertionStage = False

        self.liftoffTWR = 1.37
        self.pitchMode = "ASCENT"
        # Calculate spline points for pitch program based on liftoff TWR and target Apogee
        p1 = -30000*self.liftoffTWR + 80000
        p2 = (7/36) * target_orbit + (25000/9)
        self.pitchProgramX = np.array([0,max(p1,p2), target_orbit, target_orbit + 50000])
        self.pitchProgramY = np.array([90,45, 0, 0])
        self.pitchProgram = np.poly1d(np.polyfit(self.pitchProgramX, self.pitchProgramY, 3))

        # -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
        #         S E T   H E A D I N G          #
        # -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号