ardupilot/ArduCopter/config_channels.h
rmackay9 46a44a6b1b 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.
2012-07-15 16:31:23 +09:00

38 lines
1.1 KiB
C

#ifndef __ARDUCOPTER_CONFIG_MOTORS_H__
#define __ARDUCOPTER_CONFIG_MOTORS_H__
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
//
// DO NOT EDIT this file to adjust your configuration. Create your own
// APM_Config.h and use APM_Config.h.example as a reference.
//
// WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
///
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
#include "config.h" // Parent Config File
#include "APM_Config.h" // User Overrides
//
//
// Output CH mapping for Aux channels
//
//
#if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2
# 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__