1.修改路径在
ardupilot程序中
modules/mavlink/message_definitions/v1.0/common.xml文件
2.
<entry value=>"350" name="MAV_CMD_LED_CONTROL" hasLocation="false" isDestination="false"
<description>LED control / Open or close the show LED</description>
<param index="0">Close</param>
<param index="1">Open</param>
</entry>
3.程序编译以后会自动生成对应的指令,在仿真程序与实际飞控程序中都可以自动生成,不用手动进行修改。