坎巴拉吧 关注:25,753贴子:96,615
  • 7回复贴,共1

求助KOS、KRPC高手!关于发动机矢量的角度控制!

只看楼主收藏回复

坎巴拉中的带有矢量的火箭发动机,它的推力方向角可以通过KOS程序或者KRPCmod进行单独控制吗?我想利用四元数反馈控制设计一个简单的姿态控制器,它的控制只包含火箭发动机的推力T、矢量角\phi和矢量角\delta三个输出,如何使程序单独控制\phi和\delta呢?


IP属地:日本1楼2024-09-03 17:37回复
    去kspro的discord问


    IP属地:广东来自iPhone客户端2楼2024-09-03 22:06
    收起回复
      咦,kos 和 krpc 的文档没有这个内容吗?要不你先看看文档


      IP属地:广西3楼2024-09-04 12:04
      收起回复
        回复 #(reply, tb.1.dacabefe.NTHDo62kWcNe4usD4mNs-Q?t=1675392525, 绿瓜大侠) :Gimbal¶
        Many engines in KSP have thrust vectoring gimbals which are handled by their own module
        structure Gimbal¶
        Suffix
        Type (units)
        Description
        All suffixes of PartModule
        LOCK
        Boolean
        Is the Gimbal locked in neutral position?
        PITCH
        Boolean
        Does the Gimbal respond to pitch controls?
        YAW
        Boolean
        Does the Gimbal respond to yaw controls?
        ROLL
        Boolean
        Does the Gimbal respond to roll controls?
        LIMIT
        Scalar (%)
        Percentage of the maximum range the Gimbal is allowed to travel
        RANGE
        Scalar (deg)
        The Gimbal’s Possible Range of movement
        RESPONSESPEED
        Scalar
        The Gimbal’s Possible Rate of travel
        PITCHANGLE
        Scalar
        Current Gimbal Pitch
        YAWANGLE
        Scalar
        Current Gimbal Yaw
        ROLLANGLE
        Scalar
        Current Gimbal Roll
        Note
        Gimbal is a type of PartModule, and therefore can use all the suffixes of PartModule. Shown below are only the suffixes that are unique to Gimbal. Gimbal can be accessed as Engine:GIMBAL atribute of Engine.
        Gimbal:LOCK¶
        Type
        Boolean
        Access
        Get/Set
        Is this gimbal locked to neutral position and not responding to steering controls right now? When you set it to true it will snap the engine back to 0s for pitch, yaw and roll
        Gimbal:PITCH¶
        Type
        Boolean
        Access
        Get/Set
        Is the gimbal responding to pitch controls? Relevant only if the gimbal is not locked.
        Gimbal:YAW¶
        Type
        Boolean
        Access
        Get/Set
        Is the gimbal responding to yaw controls? Relevant only if the gimbal is not locked.
        Gimbal:ROLL¶
        Type
        Boolean
        Access
        Get/Set
        Is the gimbal responding to roll controls? Relevant only if the gimbal is not locked.
        Gimbal:LIMIT¶
        Type
        Scalar (%)
        Access
        Get/Set
        Percentage of maximum range this gimbal is allowed to travel
        Gimbal:RANGE¶
        Type
        Scalar (deg)
        Access
        Get only
        The maximum extent of travel possible for the gimbal along all 3 axis (Pitch, Yaw, Roll)
        Gimbal:RESPONSESPEED¶
        Type
        Scalar
        Access
        Get only
        A Measure of the rate of travel for the gimbal
        Gimbal:PITCHANGLE¶
        Type
        Scalar
        Access
        Get only
        The gimbals current pitch, has a range of -1 to 1. Will always be 0 when LO


        IP属地:广东来自iPhone客户端4楼2024-09-04 19:36
        收起回复