The FlightAxis toolkit enables Hardware- and Software-in-the-Loop testing for flight controllers. The toolkit allows RealFlight to communicate using SOAP. Using the Exchange Data SOAP method, the flight controller sends a control vector to RealFlight. In response, RealFlight sends a state vector. After processing, the controller sends an updated control vector and receives a state update, forming a feedback loop as this cycle repeats. A flowchart is provided at the end of this document.
FlightAxis Link是Realflight8 beta版本之后发布的一项新特性,可以通过SOAP协议实现Realflight与外部的通信,能输出飞行器的状态数据以及最多支持12路控制信号输入。可以基于该特性实现SIL (Software in loop) 或者 HIL (Hardware in loop) 仿真测试环境。
FlightAxis Link接收到的数据包示例:
Ardupilot对FlightAxis Link的实现如下:
更多关于FlightAxis Link的问题可以参考下面的官方解释:
笔者参考Ardupilot的代码,使用C#实现了对Realflight8的数据读取。
3. Realflight-Simulink联合仿真