5iMX宗旨:分享遥控模型兴趣爱好

5iMX.com 我爱模型 玩家论坛 ——专业遥控模型和无人机玩家论坛(玩模型就上我爱模型,创始于2003年)
查看: 1352|回复: 5
打印 上一主题 下一主题

求助!!!MWC的云台设置!!!增稳一开,越来越偏。

[复制链接]
跳转到指定楼层
楼主
发表于 2013-4-17 15:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这是我解锁的情况。

但是,开了,有两个问题。。。

首先是。。。。机子右偏,云台也右偏。。。这越偏越厉害啊。。

然后是,偏转角度小了,感觉,机子右偏了30度,云台才转几角。




    //#define SERVO_MIX_TILT
    #define SERVO_TILT

    /* The following lines enable pitch and roll servo streetching to values defined as TILT_MIN and TILT_MAX
       This work only with haedware PWM's for gimbal servos (MEGA board with uncommented MEGA_HW_PWM_SERVOS option)
       Tipical TILT_MIN should be about 500 and TILT_MAX abiut 2500 for 180 degres servo range */
    //#define SERVO_STRETH

    #define TILT_PITCH_MIN    1020    //servo travel min, don't set it below 1020 except mega HW pwm's is used
    #define TILT_PITCH_MAX    2000    //servo travel max, max value=2000
    #define TILT_PITCH_MIDDLE 1500    //servo neutral value
    #define TILT_PITCH_PROP   10      //servo proportional (tied to angle) ; can be negative to invert movement
    #define TILT_PITCH_AUX_CH AUX3    //AUX channel to overwrite CAM pitch (AUX1-AUX4), comment to disable manual input and free the AUX channel
    #define TILT_ROLL_MIN     1020
    #define TILT_ROLL_MAX     2000
    #define TILT_ROLL_MIDDLE  1500
    #define TILT_ROLL_PROP    10
    #define TILT_ROLL_AUX_CH  AUX4    //AUX channel to overwrite CAM Roll (AUX1-AUX4), comment to disable manual input and free the AUX channel

欢迎继续阅读楼主其他信息

沙发
发表于 2013-4-17 15:38 | 只看该作者



   #define TILT_PITCH_AUX_CH AUX3    //AUX channel to overwrite CAM pitch (AUX1-AUX4), comment to disable manual input and free the AUX channel
   #define TILT_ROLL_AUX_CH  AUX4    //AUX channel to overwrite CAM Roll (AUX1-AUX4), comment to disable manual input and free the AUX channel
这2句注释掉试试。云台方向反的话数字前面加上负号。


3
发表于 2013-4-17 18:14 | 只看该作者
沙发说得对
4
发表于 2013-4-17 21:14 | 只看该作者



机子右偏,云台也右偏。。。这越偏越厉害啊。。
TILT_ROLL_PROP  改为负数。

偏转角度小了,感觉,机子右偏了30度,云台才转几角



TILT_ROLL_PROP  增大,由于你的是负数了,其实就是变小,比如改成  -20 再试试看。

5
发表于 2013-4-17 21:16 | 只看该作者
lijingwei 发表于 2013-4-17 15:38
#define TILT_PITCH_AUX_CH AUX3    //AUX channel to overwrite CAM pitch (AUX1-AUX4), comment t ...

如果只增稳,无需手动控制角度,则注释掉    #define TILT_PITCH_AUX_CH AUX3  
#define TILT_ROLL_AUX_CH  AUX4   




6
发表于 2013-4-18 11:32 | 只看该作者
学习学习
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

关闭

【站内推荐】上一条 /2 下一条

快速回复 返回顶部 返回列表