hi all

i think simulate thrust value  to apm,  //我想模拟一个油门的值发送给apm

code:  //代码如下:

mavlink_msg_rc_channels_override_pack(mavlink_system.sysid, //systemid
mavlink_system.compid, //compid
&msg, //msg
1, //target_systemid
1, //target_compid
0, //rc1
0, //rc2
1500, //rc3
0,0,0,0,0);

but,no response of apm,did do something wrong?(apm state=arm) //但是,apm没有任何反应,我做错了什么?(apm已经解锁了)

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 问题解决了,sysid必须设置255,否则不工作!原因是 apm code 中定义了 GSCALAR(sysid_my_gcs,   "SYSID_MYGCS",     255),

    problem solve;sysid must to 255 

     reason: apm code :GSCALAR(sysid_my_gcs,   "SYSID_MYGCS",     255)

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…