ArduCopter: added definition for yaw channels.

APM1 uses channel 11 for camera's yaw servo, APM2 uses channel 8.  This should allow all frame types except octacopters to potentially use a 3 axis camera mount.
This commit is contained in:
rmackay9 2012-07-15 16:31:23 +09:00
parent 669ffb5ef8
commit 793fb7f059

View File

@ -25,13 +25,13 @@
//
//
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
/* Camera Pitch and Camera Roll: Not yet defined for APM2
* They will likely be dependent on the frame config */
# define CH_CAM_PITCH CH_11
# define CH_CAM_ROLL CH_10
# define CH_CAM_YAW CH_8
#elif CONFIG_APM_HARDWARE == APM_HARDWARE_APM1
# define CH_CAM_PITCH CH_5
# define CH_CAM_ROLL CH_6
# define CH_CAM_YAW CH_11
#endif
#endif // __ARDUCOPTER_CONFIG_MOTORS_H__