我一直在 Create Aeronautics 中打造一艘飞艇,为了构建一个能控制我这台由实体风扇驱动的飞行器的红stone PD 电路,我花了数天时间,但最终的效果却并不比完全没有控制好多少。于是,我制作了这款模组,让这一切变得轻松许多。
*[查看 GitHub 以获取快速教程!]
注意:我是个模组新手,在项目初期大量使用了 AI。我尝试逆向工程了这些 AI 代码,并按照我认为对面向对象友好的方式构建了代码结构,但我不能保证此模组完全无 bug 或具有极高的效率。
注意:尽管看起来像是航空模组的一个插件,但本模组没有任何前置依赖。你可以自由探索本模组的非航空用途。
所有物品简要概览:
所有物品都有 [Shift] 描述

PIDer 配置菜单

完整物品列表:
Plier(钳子)- 一把“扳手”。右键点击可顺时针旋转任何完整方块(信号传递器除外)。Shift+右键点击可破坏任何模组方块以及更多其他方块(甚至包括实体)。兼容任何使用扳手标签的其他模组。现在可以使用剑类附魔以及丝滑采集 / fortune 附魔。
Analog Met(模拟输出板)- 可配置的输出板,可粘贴在任意位置。向其附着的表面提供直接信号。
PWMer(PWM 发生器)- 根据侧面输入,提供基于 [back_input-1, back_input] 的 PWM 输出。
PIDer(PID 控制器)- 提供经过 PID 处理后的背面输入信号输出。还会尝试基于微分项对输入进行“自我修正”。
Cross-Reading PIDer(交叉读取 PID 控制器)- 专为控制航空模组万向节传感器某一轴而设计的 PIDer。
S-PIDer(S 方向 PID 控制器)- 不是蜘蛛,而是一个能从万向节传感器提供完整 PID 信号的 PIDer。最佳放置方式是使其朝向你的飞船的背面(“S 方向”),这样输出标签才会正确。注意,非 S 方向方块可以传递 S-PIDer 信号,但无法正确计算或解码它们。(在代码中,该信号是两个整数连接后作为一个整数传输的)
新增 Pigeon PIDers(鸽子 PID 控制器)- 一种可爱的鸽子皮肤 PIDer。灵感来自《原神》中的哥伦比娅。
Oscillation Detector(振荡检测器)- 检测背面信号是否两次穿过零点。
HOLC(高开低闭)- 当背面输入低于下限时输出红石信号,直到输入 >= 上限才停止输出。可在 Shift+右键菜单中切换反转行为并配置界限。
Helicopter Brain & Mirrored version(直升机大脑及镜像版)- 直升机的控制芯片。基本上从左侧接收基于导航仪的旋翼角度数据,从背面接收 WASD 控制的 S 信号,从右侧接收平均俯仰角,并输出四个桨叶的角度信号。镜像版会翻转左右侧。必须由直升机输出端解码。目前仍有些抖动,但基本可用。
Signal Mixer(信号混合器)- 左、右和背面信号的加权和。权重可通过 Shift+右键菜单设置。在制作全范围 PID 控制而不损失水平精度时非常有用。
新增 S-Signal Mixer(S 信号混合器)- 用于 S 信号的信号混合器。
MOSFET(场效应管)- 当侧面信号 >0 时输出背面信号。就像一个简化的 MOSFET。为方便起见,提供了几种变体。
Add Minuser(加减法器)- 单面多功能加减红石信号方块。一旦看到它,应该相当直观。
Four Adder, Four Minuser, Half Add Minuser, Half Adder, Half Minuser(四加法器、四减法器、半加减法器、半加法器、半减法器)- 提供不同数量加减面的 Add-Minuser 变体。
Paired Input(配对输入)- 接收两组 [0,15] 的正常红石信号,并将其转换为本模组内部的 [-15,15] 红石信号。想象一下你如何从万向节传感器读取俯仰信号。
Paired Output(配对输出)- 配对输入的逆过程。接收 [-15,15] 信号并将其解码回两组 [0,15] 信号。两组配对方块可同时处理两组信号。同一组具有相同的底座颜色。
S-Paired Input(S 配对输入)- WASD 输入,用于手动构建 S 信号。
S-Common Input(S 公共输入)- 为 S 信号添加公共偏移。所有输出将接收相应的控制信号加上此处的输入总和。
S-Output(S 输出)- S-PIDer 的 WASD 输出。当面向“S 方向”放置时,所有标签都会正确显示。
S-Output Varied(S 输出变体)- S-Output 的变体,将底部移至背面(在代码中实际上是前面),这样你就不必在地面上挖洞。可通过合成与 S-Output 互换。
S-Quad Decoder(S 四路解码器)- S-PIDer 输入的 Quad 解码器。当面向“S 方向”放置时,所有标签都会正确显示。无法解码 Squad。
S-Quad Decoder Varied(S 四路解码器变体)- S-Q.D. 的变体,将底部移至背面(在代码中实际上是前面),这样你就不必在地面上挖洞。可通过合成与 S-Q.D. 互换。
Common-Shift Paired Output(公共偏移配对输出)- 类似于配对输出,但仅适用于一组,并允许两个输出共用一个偏移量。例如,输入 5 在普通配对输出上会输出 {5,0},增加 2 的公共偏移则会输出 {7,2}。提供负号面。
Differ-Shift Paired Output(差值偏移配对输出)- 接受基础信号并输出基础信号 +/- 设定的偏移量。例如,输入基础值 12 和偏移量 3 会输出 {9,15}。提供负号面。
Quad Signal Decoder(四路信号解码器)- 基本上是将 WASD 转换为类似四旋翼 / 带副翼尾翼的信号。解释起来略显复杂,请参阅游戏内 [Shift] 提示了解更多。
Helicopter Output(直升机输出)- 直升机大脑的输出。成行放置两个以获得完整效果,第一个输出四个桨叶的正信号,第二个输出负信号。
Signal Diffuser(信号扩散器)- 将输入信号广播到所有其他面。
Signal Passer(信号传递器)- 3 向(实际上是 6 向,但目前尚无方块支持全部 6 向)独立信号传递。
其他功能:
可在配置文件中自定义菜单颜色。由于是代码生成的,因此没有背景交换功能。
可配置黑名单,以防止物品与本模组中的方块发生交互。
你可以自由地将我的模组包含在你的整合包中。如果你这样做,请留下评论 :)
I have been working on an airship in Create Aeronautics, and it took me days to build a redstone pd circuit that would control my physical-fan-driven craft, yet the result was simply not much better than having no control. Then I made this mod so things'll be much easier for you.
*[Check GitHub for a quick tutorial!]
Note: I am a mod noob, and AI is extensively used at the begining of this project. I attempted to reverse-engineer the ai code and crafted the code structure in a way that seems OO-friendly to me, but I do not garantee that this mod is bug-free nor highly efficient.
Note: Despite looking like a aeronautics addon, this mod has NO prereq at all. You are free to explore any non-aeronautic use of this mod.
Brief overview of all stuff:
EVERYTHING has [shift] description

PIDer config menu

A full list of items:
Plier - A "wrench". Right-click rotates any full block CW (except signal passer). Shift+RC breaks any mod block and a few more (even entities). Is compatible with any other mod using the wrench tag. Now can be enchanted with sword enchants & Silk Touch / Fortune.
Analog Met - Configurable output plate that can paste on anything. Gives direct signal to the face it attaches on.
PWMer - Provides PWM output of [back_input-1, back_input] based on side input.
PIDer - Provides PIDed output of the back input signal. Also attempts to "self-correct" the input based on derivatives.
Cross-Reading PIDer - PIDer specified at controlling one axis of aeronautics' gimble sensor.
S-PIDer - Not a spider, but a PIDer that provides full PID signal from a gimble sensor. Is optimally put facing back ("S-direction") of your ship so the output labels will be correct. Note non-S blocks CAN pass the S-PIDer signal, but CAN NOT correctly calculate nor decode them. (In the code the signal is two ints concatinated and transferred as one int)
New Pigeon PIDers - A cute pigeon skin for PIDers. Inspiration from Genshin Impact Columbina.
Oscillation Detector - Detects if the back signal passes through 0 for two times.
HOLC - High-Open-Low-Closed. Outputs RS when back input goes below the lower bound, not stop outputing until it goes >= the higher bound. Can toggle invert behavior and config bounds in Shift+RC menu.
Helicopter Brain & Mirrored version - Control chip for helicopters. Basically takes navigator-based rotor angle data from left, S-signal WASD control from back, mean pitch from right and output four blade angle signal. The mirrored version flips left and right. Must be decoded by helicopter outputs.Still quite shaky but kinda working now.
Signal Mixer - Weighted sum of left, right and back signals. Weights can be set via Shift+RC menu. Can be quite useful when making a full-ranged PID control without losing level accuracy.
New S-Signal Mixer - Signal mixer for S signals.
MOSFET - Outputs back signal when side signal >0. Just like a simplified MOSFET. Has a few variants for your convinence.
Add Minuser - One-block multiface +- redstone signal. Should be pretty intuitive once you saw it.
Four Adder, Four Minuser, Half Add Minuser, Half Adder, Half Minuser - Variants of Add-Minuser providing different numbers of +- faces.
Paired Input - Takes two groups of two [0,15] normal RS signal and translate that into [-15,15] internal RS signal of this mod. Think of how you would read pitch signals from a gimble sensor.
Paired Output - The reverse of paired input. Takes [-15,15] signal and decodes that back into two [0,15] signals. Both paired block can do TWO groups at the same time. Same group have the same face base color.
S-Paired Input - WASD input to manually craft a S-signal.
S-Common Input - Adds a comment shift to S-signal. All outputs will receive corresponding control signal + input sum of this
S-Output - WASD output for S-PIDer. When put facing "S-direction", all labels'll be correct.
S-Output Varied - S-Output but moved the bottom to back (technically front in the code) so you don't have to dig a hole on your floor. Can interchange with S-Output via crafting.
S-Quad Decoder - Quad Decoder for S-PIDer input. When put facing "S-direction", all labels'll be correct. Can not decode Squad.
S-Quad Decoder Varied - S-Q.D. but moved the bottom to back (technically front in the code) so you don't have to dig a hole on your floor. Can interchange with S-Q.D. via crafting.
Common-Shift Paired Output - Paired output excepts works for only one group but allows a common shift on both outputs. E.g. input 5 would output {5,0} on a paired output, adding common shift of 2 would output {7,2}. Negative input faces provided.
Differ-Shift Paired Output - Accepts a base signal and output base signal +- set shift. E.g. Input base 12 and shift 3 would output {9,15}. Negative faces provided.
Quad Signal Decoder - Basically WASD -> quadcopter-like / aileroned-tail signal. Is slightly complicated to explain so see more at in-game [shift] hint.
Helicopter Output - Output for helicopter brain. Placed two-in-a-row to have full effect, where the first one outputs positive signals for four blades and the second one outputs negative.
Signal Diffuser - Broadcasts input signal to all other faces.
Signal Passer - 3-way (technically 6-way but not yet any block support that) independent signal passing.
Other features: Configurable menu color in config. No BG swap avaliable cause it's code-generated. Configurable blacklist to prevent items from interacting with blocks in this mod.
You are free to include my mod in your modpack. Please leave a comment if you do so :)
下载 Redstone Flight Control Set
下载 Redstone Flight Control Set
下载 Redstone Flight Control Set
下载 Redstone Flight Control Set
下载 Redstone Flight Control Set
下载 Redstone Flight Control Set
下载 Redstone Flight Control Set
下载 Redstone Flight Control Set
新增:
- 将“鸽子芯片”添加为 PIDer 的皮肤,3 种变体均可用
- 添加了 S-信号混合器
- 改进了导数功能,并为 PIDer 添加了“智能积分”
修改:
- 直升机大脑现在基本上可以工作了
- 现在所有芯片都进行全旋转
- 重做了纹理
- 调整了部分方块的合成配方
- 部分方块现在重量仅为 0.5 sable 质量
修复:
- 修复了 S-PIDer 无法读取 S-信号输入的问题
- 修复了 PWM 输出未真正对负信号进行 PWM 处理的问题
- 修复了 HOLC 芯片实际上从未有合成配方的问题
- 修复了直升机大脑(镜像版)信号被镜像两次,导致实际上并未镜像的问题
- 修复了部分屏幕初始值与预期不符的问题,不过似乎并未产生影响
- 修复了在 RSFC 方块上放置方块时(不按住 Shift)没有声音的问题
其他:
- 将旋转代码从 SignalFullBlock 移至 SimpleRSInOutBlock,以支持芯片旋转
- 进行了随机的逻辑更改,以适应底层的变化
尝试:
- 尝试制造一种类似鸟类的算法,发现其在数学上等同于 PID,因此成为了 PIDer 的一种皮肤
- 尝试在数学上补偿直升机大脑在亚刻度的叶片运动时的相位读数,但未能使其表现优于无补偿的情况。可能会在稍后继续尝试
添加了几个变体的 MOSFET,分别接受来自左侧、右侧和底部的输入。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧