\ardupilot-mpng-3.0.1-R2\ardupilot-mpng\libraries\AP_HAL_MPNG
找到RCInput_MPNG文件 记事本打开编辑**** RC pin mapping *****里面的内容
下面是我修改过的 你可以全部覆盖原文件的相关内容或者自行参考修改试试
//***************** RC pin mapping *******************************************************
// To change pinmapping, uncomment ONE line starting with 'static unit8_t...'
// Graupner/Spektrum
// PITCH,YAW,THROTTLE,ROLL,AUX1,AUX2,CAMPITCH,CAMROLL
//static uint8_t pinRcChannel[8] = {1, 3, 2, 0, 4, 5, 6, 7}; # Sta n dard (Default)
// ROLL,PITCH,THROTTLE,YAW,MODE,AUX2,CAMPITCH,CAMROLL
static uint8_t pinRcChannel[8] = {1, 2, 0, 3, 4, 5, 7, 6}; // some Hitec/Sanwa/others
// PITCH,ROLL,THROTTLE,YAW,AUX1,AUX2,CAMPITCH,CAMROLL
//static uint8_t pinRcChannel[8] = {1, 0, 2, 3, 4, 5, 6, 7};// Multiwii
// ROLL,THROTTLE,PITCH,YAW,AUX1,AUX2,CAMPITCH,CAMROLL
//static uint8_t pinRcChannel[8] = {1, 2, 0, 3, 4, 5, 6, 7};
// JR
// FLAPS:MODE, GEAR:SAVE TRIMM = apm ch7
//static uint8_t pinRcChannel[8] = {1, 2, 0, 3, 5, 6, 4, 7};
//*****************
我的小海盗http://bbs.5imx.com/bbs/forum.php?mod=viewthread&tid=917834&page=1&extra=#pid12311129
|