Does using ch6 this way interfere with the camera pitch control? I have ch6 connected to Input 6 on the APM. On my radio ch6 is a little side trim wheel so is good for camera pitch control. JRX9503.
Can I use another ch like 9 that has a switch to control the relay or would that involve a lot of code modification?
Replies
Does using ch6 this way interfere with the camera pitch control? I have ch6 connected to Input 6 on the APM. On my radio ch6 is a little side trim wheel so is good for camera pitch control. JRX9503.
Can I use another ch like 9 that has a switch to control the relay or would that involve a lot of code modification?
Hmmm... It used to be in APM_Config.
EDIT: edited for clarity! The case structure for CH6 is still ArduCopter.pde
case CH6_RELAY:
g.rc_6.set_range(0,1000);
if (g.rc_6.control_in > 525) relay.on();
if (g.rc_6.control_in < 475) relay.off();
break;
, so you should still be able to add to your APM_Config.h ...
Try adding this to your APM_Config.h:
#define CHANNEL_6_TUNING CH6_RELAY
The rest of the options are:
/*
CH6_NONE
CH6_STABILIZE_KP
CH6_STABILIZE_KI
CH6_RATE_KP
CH6_RATE_KI
CH6_THROTTLE_KP
CH6_THROTTLE_KD
CH6_YAW_KP
CH6_YAW_KI
CH6_YAW_RATE_KP
CH6_YAW_RATE_KI
CH6_TOP_BOTTOM_RATIO
CH6_PMAX
CH6_RELAY
CH6_TRAVERSE_SPEED
*/