SIL(軟體在環)測試台SIL (Software-in-the-Loop) Testbed
我在電腦上建立一個「假的世界」,讓真正的飛控程式以為自己在飛,元件和環境都是模擬的。
I have created a "virtual world" on a computer, tricking the actual flight control software into "believing" it is in flight; both the system components and the environment are simulated.
物理模型產生飛行狀態,感測器模型加上雜訊與延遲後餵給飛控,再由獨立的判定器比對結果,以類似 APCS 的方式給出 AC、WA、TLE、RE 等判定。
Physical models generate flight states, while sensor models—incorporating noise and latency—feed data into the flight controller. An independent evaluator then compares the results, assigning outcomes similar to those used in competitive programming (e.g., AC, WA, TLE, RE).
數十個檢查站涵蓋握手、發射互鎖、飛行階段、故障注入與破壞性測試,讓每一次修改都能重跑驗證,詳情可見下方的程式庫以及我自己使用該自製軟體的影片還有驗證過程(軟體編譯驗證介紹以及我自己手算的草稿紙)。
Dozens of test checkpoints—covering handshakes, launch interlocks, various flight phases, fault injection, and stress/destructive testing—ensure that every code modification can be re-verified. For further details, please refer to the repository below, as well as my own videos demonstrating the use of this custom-built software and the verification process (including an overview of the software compilation/validation and my handwritten calculation notes).
自我介紹Self-introduction
SSS測試台介紹與實際操作SSS testbed introduction and operation
測試台結果紙筆驗證與檢討Pen-and-paper verification of testbed results and review
儲存器與遙測佇列合理性計算與驗證Memory and telemetry-queue sanity calculation and verification
飛行軌跡的計算與驗證以及自我省思Flight-trajectory calculation, verification, and reflection