Mavlink.cs 代码生成
参考博主 audupilot自定义mavlink消息与地面站通信 在 Ubuntu 端完成 Ardupilot 代码修改和地面站端 Mavlink.cs 代码更新
增加代码如下所示:
/// extensions_start 0
[StructLayout(LayoutKind.Sequential, Pack = 1, Size = 20)]
///<summary> send the waypoints that UAV has reached from Missionplanner. </summary>
public struct mavlink_wp_process_t
{
/// packet ordered constructor
public mavlink_wp_process_t(float yaw, float rollspeed, float pitchspeed, float yawspeed, ushort total_wp, ushort reached_wp)
{
this.yaw = yaw;
this.rollspeed = rollspeed;
this.pitchspeed = pitchspeed;
this.yawspeed = yawspeed;
this.total_wp = total_wp;
this.reached_wp = reached_wp;
}
/// packet xml order
public static mavlink_wp_process_t PopulateXMLOrder(ushort total_wp